fixed /api/user/synchronize

This commit is contained in:
2024-11-07 03:11:07 +03:00
parent 646bc77aa0
commit 1a557fd530
5 changed files with 10 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class ProductService {
async getAll(groupId) {
let result = (await db.query("SELECT local_id, abstract_product_id, amount, date_of_production, expiry_date FROM products WHERE group_id = $1", [groupId])).rows;
if (!result) throw new customError(`getAll product not found`, responseCodes.responses.products.not_found);
// if (!result) throw new customError(`getAll product not found`, responseCodes.responses.products.not_found);
return result;
}