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