chore: build
Backend - Build & Lint / build (push) Successful in 31m25s
Frontend Admin - EAS Build / build (push) Successful in 1h24m40s

This commit is contained in:
Xor290
2026-11-15 22:05:14 +01:00
parent 3ce40dd2be
commit beb78bf062
14 changed files with 1204 additions and 35 deletions
+11
View File
@@ -644,6 +644,17 @@ export const updateProductAdmin = async (
return { success: true, data: data.data, message: data.message };
};
export const updateProductStockAdmin = async (
productId: number,
stock: number,
) => {
const { data } = await apiClient.post(
`${V2}/admin/protected/products/${productId}/stock`,
{ stock },
);
return { success: true, product: data.product };
};
export const deleteProductAdmin = async (productId: number) => {
const { data } = await apiClient.delete(
`${V2}/admin/protected/products/${productId}`,