修改request_task的index

This commit is contained in:
zhl 2023-04-26 16:23:18 +08:00
parent bf6d24b6a2
commit 1756e271cc
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class WorkFlowController extends BaseController {
// let fileId = 'WWME_g-oYEAAAzSUkPNpznkoGbgD2f1bDCA.xlsx' // let fileId = 'WWME_g-oYEAAAzSUkPNpznkoGbgD2f1bDCA.xlsx'
// await new WechatWorkService().fetchFile(fileId) // await new WechatWorkService().fetchFile(fileId)
// console.log('11') // console.log('11')
let spNo = '202304140001' let spNo = '202304260007'
new TaskQueue().addTaskToQueue(spNo) new TaskQueue().addTaskToQueue(spNo)
// let task = await ChainTask.findById('642fe42611845ce0e1def316') // let task = await ChainTask.findById('642fe42611845ce0e1def316')
// for (let tid of task.tasks) { // for (let tid of task.tasks) {

View File

@ -35,7 +35,7 @@ export enum ReqTaskStatus {
} }
@dbconn() @dbconn()
@index({ scheduleId: 1 }, { unique: true }) @index({ scheduleId: 1 }, { unique: true, partialFilterExpression: { scheduleId: { $exists: true } } })
@modelOptions({ @modelOptions({
schemaOptions: { collection: 'chain_request_task', timestamps: true }, schemaOptions: { collection: 'chain_request_task', timestamps: true },
options: { allowMixed: Severity.ALLOW }, options: { allowMixed: Severity.ALLOW },