Skip to content

Commit

Permalink
fix: using the string value of AppStream flag (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketD92 authored Jul 27, 2021
1 parent 199bbb0 commit 816ba37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class EnvironmentScService extends Service {
await super.init();
const [dbService, environmentAuthzService] = await this.service(['dbService', 'environmentAuthzService']);
const table = this.settings.get(settingKeys.tableName);
this.isAppStreamEnabled = this.settings.get(settingKeys.isAppStreamEnabled);
this.isAppStreamEnabled = this.settings.get(settingKeys.isAppStreamEnabled) === 'true';

this._getter = () => dbService.helper.getter().table(table);
this._query = () => dbService.helper.query().table(table);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ProjectService extends Service {
const [dbService] = await this.service(['dbService']);
const table = this.settings.get(settingKeys.tableName);
this.userService = await this.service('userService');
this.isAppStreamEnabled = this.settings.get(settingKeys.isAppStreamEnabled);
this.isAppStreamEnabled = this.settings.get(settingKeys.isAppStreamEnabled) === 'true';

this._getter = () => dbService.helper.getter().table(table);
this._updater = () => dbService.helper.updater().table(table);
Expand Down

0 comments on commit 816ba37

Please sign in to comment.