Browse Source

Resolve bulkcreate debug

release_1.1.2
巴林闲侠 2 years ago
parent
commit
658d6cea85
  1. 15
      code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js

15
code/VideoAccess-VCMP/api/app/lib/controllers/status/index.js

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

Loading…
Cancel
Save