diff --git a/package.json b/package.json index f9dce0d..6b675db 100644 --- a/package.json +++ b/package.json @@ -7,45 +7,45 @@ "@cool-midway/cache-manager-fs-hash": "^6.0.0", "@cool-midway/cloud": "^6.0.0", "@cool-midway/core": "^6.0.6", - "@cool-midway/file": "^6.0.1", + "@cool-midway/file": "^6.0.2", "@cool-midway/iot": "^6.0.0", "@cool-midway/pay": "^6.0.0", "@cool-midway/rpc": "^6.0.1", "@cool-midway/sms": "^6.0.1", "@cool-midway/task": "^6.0.0", - "@midwayjs/bootstrap": "^3.11.4", - "@midwayjs/cache": "^3.11.5", - "@midwayjs/core": "^3.11.4", - "@midwayjs/cross-domain": "^3.11.5", - "@midwayjs/decorator": "^3.11.4", - "@midwayjs/info": "^3.11.5", - "@midwayjs/koa": "^3.11.5", + "@midwayjs/bootstrap": "^3.11.6", + "@midwayjs/cache": "^3.11.10", + "@midwayjs/core": "^3.11.6", + "@midwayjs/cross-domain": "^3.11.10", + "@midwayjs/decorator": "^3.11.6", + "@midwayjs/info": "^3.11.10", + "@midwayjs/koa": "^3.11.10", "@midwayjs/logger": "^2.17.0", - "@midwayjs/static-file": "^3.11.5", + "@midwayjs/static-file": "^3.11.10", "@midwayjs/task": "^3.6.0", - "@midwayjs/typeorm": "^3.11.5", - "@midwayjs/validate": "^3.11.5", - "@midwayjs/view-ejs": "^3.11.5", - "axios": "^1.3.6", + "@midwayjs/typeorm": "^3.11.10", + "@midwayjs/validate": "^3.11.10", + "@midwayjs/view-ejs": "^3.11.10", + "axios": "^1.4.0", "ipip-ipdb": "^0.6.0", "jsonwebtoken": "^9.0.0", "lodash": "^4.17.21", "md5": "^2.3.0", "mini-svg-data-uri": "^1.4.4", "moment": "^2.29.4", - "mysql2": "^3.2.4", + "mysql2": "^3.3.3", "svg-captcha": "^1.4.0", - "svg2png-wasm": "^1.3.4", - "tencentcloud-sdk-nodejs": "^4.0.607", - "typeorm": "^0.3.15", + "svg2png-wasm": "^1.4.0", + "tencentcloud-sdk-nodejs": "^4.0.612", + "typeorm": "^0.3.16", "uuid": "^9.0.0" }, "devDependencies": { - "@midwayjs/cli": "^2.0.15", - "@midwayjs/mock": "^3.11.5", - "@types/jest": "^29.5.1", + "@midwayjs/cli": "^2.1.1", + "@midwayjs/mock": "^3.11.10", + "@types/jest": "^29.5.2", "@types/koa": "^2.13.6", - "@types/node": "18", + "@types/node": "20", "cross-env": "^7.0.3", "jest": "^29.5.0", "mwts": "^1.3.0", diff --git a/src/modules/task/queue/task.ts b/src/modules/task/queue/task.ts index 6d1bd1f..57a713e 100644 --- a/src/modules/task/queue/task.ts +++ b/src/modules/task/queue/task.ts @@ -1,7 +1,6 @@ import { App, Inject } from '@midwayjs/decorator'; import { BaseCoolQueue, CoolQueue } from '@cool-midway/task'; import { TaskInfoService } from '../service/info'; -import { Job } from 'bullmq'; import { IMidwayApplication } from '@midwayjs/core'; /** @@ -15,7 +14,7 @@ export abstract class TaskInfoQueue extends BaseCoolQueue { @Inject() taskInfoService: TaskInfoService; - async data(job: Job, done: any): Promise { + async data(job, done: any): Promise { try { const result = await this.taskInfoService.invokeService(job.data.service); this.taskInfoService.record(job.data, 1, JSON.stringify(result));