fixed /api/user/synchronize
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user