mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
更新依赖到最新
This commit is contained in:
parent
61fd3b0ab8
commit
26b0e37dc2
42
package.json
42
package.json
@ -7,45 +7,45 @@
|
|||||||
"@cool-midway/cache-manager-fs-hash": "^6.0.0",
|
"@cool-midway/cache-manager-fs-hash": "^6.0.0",
|
||||||
"@cool-midway/cloud": "^6.0.0",
|
"@cool-midway/cloud": "^6.0.0",
|
||||||
"@cool-midway/core": "^6.0.6",
|
"@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/iot": "^6.0.0",
|
||||||
"@cool-midway/pay": "^6.0.0",
|
"@cool-midway/pay": "^6.0.0",
|
||||||
"@cool-midway/rpc": "^6.0.1",
|
"@cool-midway/rpc": "^6.0.1",
|
||||||
"@cool-midway/sms": "^6.0.1",
|
"@cool-midway/sms": "^6.0.1",
|
||||||
"@cool-midway/task": "^6.0.0",
|
"@cool-midway/task": "^6.0.0",
|
||||||
"@midwayjs/bootstrap": "^3.11.4",
|
"@midwayjs/bootstrap": "^3.11.6",
|
||||||
"@midwayjs/cache": "^3.11.5",
|
"@midwayjs/cache": "^3.11.10",
|
||||||
"@midwayjs/core": "^3.11.4",
|
"@midwayjs/core": "^3.11.6",
|
||||||
"@midwayjs/cross-domain": "^3.11.5",
|
"@midwayjs/cross-domain": "^3.11.10",
|
||||||
"@midwayjs/decorator": "^3.11.4",
|
"@midwayjs/decorator": "^3.11.6",
|
||||||
"@midwayjs/info": "^3.11.5",
|
"@midwayjs/info": "^3.11.10",
|
||||||
"@midwayjs/koa": "^3.11.5",
|
"@midwayjs/koa": "^3.11.10",
|
||||||
"@midwayjs/logger": "^2.17.0",
|
"@midwayjs/logger": "^2.17.0",
|
||||||
"@midwayjs/static-file": "^3.11.5",
|
"@midwayjs/static-file": "^3.11.10",
|
||||||
"@midwayjs/task": "^3.6.0",
|
"@midwayjs/task": "^3.6.0",
|
||||||
"@midwayjs/typeorm": "^3.11.5",
|
"@midwayjs/typeorm": "^3.11.10",
|
||||||
"@midwayjs/validate": "^3.11.5",
|
"@midwayjs/validate": "^3.11.10",
|
||||||
"@midwayjs/view-ejs": "^3.11.5",
|
"@midwayjs/view-ejs": "^3.11.10",
|
||||||
"axios": "^1.3.6",
|
"axios": "^1.4.0",
|
||||||
"ipip-ipdb": "^0.6.0",
|
"ipip-ipdb": "^0.6.0",
|
||||||
"jsonwebtoken": "^9.0.0",
|
"jsonwebtoken": "^9.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"md5": "^2.3.0",
|
"md5": "^2.3.0",
|
||||||
"mini-svg-data-uri": "^1.4.4",
|
"mini-svg-data-uri": "^1.4.4",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"mysql2": "^3.2.4",
|
"mysql2": "^3.3.3",
|
||||||
"svg-captcha": "^1.4.0",
|
"svg-captcha": "^1.4.0",
|
||||||
"svg2png-wasm": "^1.3.4",
|
"svg2png-wasm": "^1.4.0",
|
||||||
"tencentcloud-sdk-nodejs": "^4.0.607",
|
"tencentcloud-sdk-nodejs": "^4.0.612",
|
||||||
"typeorm": "^0.3.15",
|
"typeorm": "^0.3.16",
|
||||||
"uuid": "^9.0.0"
|
"uuid": "^9.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@midwayjs/cli": "^2.0.15",
|
"@midwayjs/cli": "^2.1.1",
|
||||||
"@midwayjs/mock": "^3.11.5",
|
"@midwayjs/mock": "^3.11.10",
|
||||||
"@types/jest": "^29.5.1",
|
"@types/jest": "^29.5.2",
|
||||||
"@types/koa": "^2.13.6",
|
"@types/koa": "^2.13.6",
|
||||||
"@types/node": "18",
|
"@types/node": "20",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"jest": "^29.5.0",
|
"jest": "^29.5.0",
|
||||||
"mwts": "^1.3.0",
|
"mwts": "^1.3.0",
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { App, Inject } from '@midwayjs/decorator';
|
import { App, Inject } from '@midwayjs/decorator';
|
||||||
import { BaseCoolQueue, CoolQueue } from '@cool-midway/task';
|
import { BaseCoolQueue, CoolQueue } from '@cool-midway/task';
|
||||||
import { TaskInfoService } from '../service/info';
|
import { TaskInfoService } from '../service/info';
|
||||||
import { Job } from 'bullmq';
|
|
||||||
import { IMidwayApplication } from '@midwayjs/core';
|
import { IMidwayApplication } from '@midwayjs/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -15,7 +14,7 @@ export abstract class TaskInfoQueue extends BaseCoolQueue {
|
|||||||
@Inject()
|
@Inject()
|
||||||
taskInfoService: TaskInfoService;
|
taskInfoService: TaskInfoService;
|
||||||
|
|
||||||
async data(job: Job, done: any): Promise<void> {
|
async data(job, done: any): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const result = await this.taskInfoService.invokeService(job.data.service);
|
const result = await this.taskInfoService.invokeService(job.data.service);
|
||||||
this.taskInfoService.record(job.data, 1, JSON.stringify(result));
|
this.taskInfoService.record(job.data, 1, JSON.stringify(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user