Typescript's better.
This commit is contained in:
parent
96133b7733
commit
66fff16d30
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue