chore: fix problem of transcation beeing commited throw update the "

category variant
This commit is contained in:
mahyargdz
2025-09-21 11:45:24 +03:30
parent 3d1aa01f2e
commit 79f597cc90
23 changed files with 52 additions and 97 deletions
-18
View File
@@ -9,21 +9,3 @@ export function omit<T extends Record<string, never>, K extends keyof never>(obj
}
export const priceNumberFormat = (price: number) => Intl.NumberFormat("fa-IR").format(price);
// const omitKey = [
// "learningStatus",
// "contractStatus",
// "registerStatus",
// "documentStatus",
// "paymentStatus",
// "rate",
// "prodcuts",
// "purchases",
// "orders",
// ];
// const payload = omit(updateDto, omitKey);
// console.log(payload);
// const omitKey = ["basket", "favoriteProducts", "comments", "orders", "phoneNumber", "email"];
// const payload = omit(updateDto, omitKey);
// console.log(payload);