bigint fix

This commit is contained in:
jusax23 2023-04-01 11:49:42 +02:00
parent f18ce23cf9
commit eacae8835e
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -84,7 +84,7 @@ export const addCategory: Act = {
.limit(1)
).query(db);
if (req.affectedRows > 0) aws("ok", {
catID: req.insertId
catID: Number(req.insertId)
});
else aws("error", act_error.ADD_CAT);
}
@ -290,7 +290,7 @@ export const addProduct: Act = {
data.parent > -1 ? data.parent : null,
).query(db);
if (req.affectedRows > 0) aws("ok", {
listProdID: req.insertId
listProdID: Number(req.insertId)
});
else aws("error", act_error.ADD_PROD);
}
@ -481,7 +481,7 @@ export const addItem: Act = {
data.listProdID > -1 ? data.parent : null,
).query(db);
if (req.affectedRows > 0) aws("ok", {
listItemID: req.insertId
listItemID: Number(req.insertId)
});
else aws("error", act_error.ADD_ITEM);
}