Skip to content

Commit ec27530

Browse files
authored
chore: upgrade bullmq version and update cookie extra options (#4330)
1 parent 2392502 commit ec27530

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

packages/bull-board/src/board.middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ export class BoardMiddleware
8080
const queueList = framework.getQueueList();
8181
const wrapQueues = queueList.map(queue => {
8282
if (this.applicationContext.hasNamespace('bull')) {
83-
return new BullAdapter(queue);
83+
return new BullAdapter(queue) as any;
8484
} else if (this.applicationContext.hasNamespace('bullmq')) {
85-
return new BullMQAdapter(queue);
85+
return new BullMQAdapter(queue) as any;
8686
}
8787
});
8888
this.basePath = this.bullBoardConfig.basePath;

packages/bullmq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@midwayjs/mock": "^3.20.4"
2929
},
3030
"dependencies": {
31-
"bullmq": "5.39.1"
31+
"bullmq": "5.51.1"
3232
},
3333
"engines": {
3434
"node": ">=12"

packages/web-koa/src/config/config.default.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ export const cookies = {
4545
/**
4646
* default cookie get options
4747
*/
48-
export const cookiesGet = {
49-
// sign: false,
48+
export const cookiesExtra = {
49+
defaultGetOptions: {
50+
// sign: false,
51+
},
5052
};
5153

5254
export const onerror = {};

packages/web-koa/src/framework.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export class MidwayKoaFramework extends BaseFramework<
7272
}
7373

7474
const cookieOptions = this.configService.getConfiguration('cookies');
75-
const cookieGetOptions = this.configService.getConfiguration('cookiesGet');
75+
const cookieGetOptions = this.configService.getConfiguration(
76+
'cookiesExtra.defaultGetOptions'
77+
);
7678

7779
this.app = new koa<DefaultState, IMidwayKoaContext>({
7880
keys: [].concat(appKeys),

0 commit comments

Comments
 (0)