|
@ -199,13 +199,14 @@ async function resolveEdit (ctx) { |
|
|
transaction |
|
|
transaction |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
await models.CameraStatusResolve.bulkCreate( |
|
|
const bulkCreateD = data.resolve.map(r => { |
|
|
data.resolve.map(r => { |
|
|
|
|
|
return { |
|
|
return { |
|
|
statusId: data.statusId, |
|
|
statusId: data.statusId, |
|
|
resolve: r |
|
|
resolve: r, |
|
|
} |
|
|
} |
|
|
}), |
|
|
}) |
|
|
|
|
|
console.log(bulkCreateD); |
|
|
|
|
|
await models.CameraStatusResolve.bulkCreate(bulkCreateD, |
|
|
{ transaction } |
|
|
{ transaction } |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|