Typescript's better.

This commit is contained in:
2024-11-06 03:48:45 +03:00
parent 96133b7733
commit 66fff16d30

View File

@@ -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) {