From 79a14dde40ff3937bb89968293ae959310d7e973 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Fri, 4 Aug 2023 13:27:12 +0800 Subject: [PATCH] =?UTF-8?q?(*)=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/data/anspectionNotificationPhone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/app/lib/controllers/data/anspectionNotificationPhone.js b/api/app/lib/controllers/data/anspectionNotificationPhone.js index 6b79e041..2b965152 100644 --- a/api/app/lib/controllers/data/anspectionNotificationPhone.js +++ b/api/app/lib/controllers/data/anspectionNotificationPhone.js @@ -36,6 +36,7 @@ async function addAnspectionNotificationPhone(ctx) { }) }) await models.AnspectionNotificationPhone.bulkCreate(dataList); + await transaction.commit(); ctx.status = 204 } catch (error) { ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);