Skip to content

Commit

Permalink
fix(App configuration): Fix presence of isQueuePriorityEnabled proper…
Browse files Browse the repository at this point in the history
…ty in config chain (#838)
  • Loading branch information
crazy-grizzly authored Nov 9, 2021
1 parent 930cad5 commit e3651e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default interface AppConfig {
readonly redis: {
readonly prefix: string;
readonly client: () => Promise<Redis>;
readonly isQueuePriorityEnabled: boolean;
};
};
readonly service: {
Expand Down
1 change: 1 addition & 0 deletions src/apps/statements/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default interface AppConfig {
readonly redis: {
readonly prefix: string;
readonly client: () => Promise<Redis>;
readonly isQueuePriorityEnabled: boolean;
};
};
}
1 change: 1 addition & 0 deletions src/apps/statements/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default (appConfig: AppConfig): Result => {
redis: {
client: appConfig.repo.redis.client,
prefix: appConfig.repo.redis.prefix,
isQueuePriorityEnabled: appConfig.repo.redis.isQueuePriorityEnabled,
},
},
models: {
Expand Down
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ expressApp.use(
redis: {
client: connectToRedis(),
prefix: config.redis.prefix,
isQueuePriorityEnabled: config.isQueuePriorityEnabled,
},
repoFactory: config.repoFactory,
s3: config.s3StorageRepo,
Expand Down

0 comments on commit e3651e7

Please sign in to comment.