Skip to content

Commit e3651e7

Browse files
fix(App configuration): Fix presence of isQueuePriorityEnabled property in config chain (#838)
1 parent 930cad5 commit e3651e7

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/apps/AppConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default interface AppConfig {
4444
readonly redis: {
4545
readonly prefix: string;
4646
readonly client: () => Promise<Redis>;
47+
readonly isQueuePriorityEnabled: boolean;
4748
};
4849
};
4950
readonly service: {

src/apps/statements/AppConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default interface AppConfig {
6060
readonly redis: {
6161
readonly prefix: string;
6262
readonly client: () => Promise<Redis>;
63+
readonly isQueuePriorityEnabled: boolean;
6364
};
6465
};
6566
}

src/apps/statements/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default (appConfig: AppConfig): Result => {
1919
redis: {
2020
client: appConfig.repo.redis.client,
2121
prefix: appConfig.repo.redis.prefix,
22+
isQueuePriorityEnabled: appConfig.repo.redis.isQueuePriorityEnabled,
2223
},
2324
},
2425
models: {

src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ expressApp.use(
2929
redis: {
3030
client: connectToRedis(),
3131
prefix: config.redis.prefix,
32+
isQueuePriorityEnabled: config.isQueuePriorityEnabled,
3233
},
3334
repoFactory: config.repoFactory,
3435
s3: config.s3StorageRepo,

0 commit comments

Comments
 (0)