From 66fff16d305c27eaaab3604246f42a6f10deb59e Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 6 Nov 2024 03:48:45 +0300 Subject: [PATCH] Typescript's better. --- src/services/abstractproduct.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/abstractproduct.js b/src/services/abstractproduct.js index e32071c..4f3c22b 100644 --- a/src/services/abstractproduct.js +++ b/src/services/abstractproduct.js @@ -26,10 +26,10 @@ class AbstractProductService { } async updateNetWeight(groupId, localId, net_weight) { - await db.query("UPDATE abstract_products SET net_weight = $1 WHERE group_id = $2 AND local_id = $3", [net_weight, groupId, localId] + await db.query("UPDATE abstract_products SET net_weight = $1 WHERE group_id = $2 AND local_id = $3", [net_weight, groupId, localId]) .catch((e) => { errorHandler(e, "netweight") - })); + }); } async updateImageFilename(groupId, localId, image_filename) {