修改request_task的index
This commit is contained in:
parent
bf6d24b6a2
commit
1756e271cc
@ -113,7 +113,7 @@ class WorkFlowController extends BaseController {
|
||||
// let fileId = 'WWME_g-oYEAAAzSUkPNpznkoGbgD2f1bDCA.xlsx'
|
||||
// await new WechatWorkService().fetchFile(fileId)
|
||||
// console.log('11')
|
||||
let spNo = '202304140001'
|
||||
let spNo = '202304260007'
|
||||
new TaskQueue().addTaskToQueue(spNo)
|
||||
// let task = await ChainTask.findById('642fe42611845ce0e1def316')
|
||||
// for (let tid of task.tasks) {
|
||||
|
@ -35,7 +35,7 @@ export enum ReqTaskStatus {
|
||||
}
|
||||
|
||||
@dbconn()
|
||||
@index({ scheduleId: 1 }, { unique: true })
|
||||
@index({ scheduleId: 1 }, { unique: true, partialFilterExpression: { scheduleId: { $exists: true } } })
|
||||
@modelOptions({
|
||||
schemaOptions: { collection: 'chain_request_task', timestamps: true },
|
||||
options: { allowMixed: Severity.ALLOW },
|
||||
|
Loading…
x
Reference in New Issue
Block a user