chore: fix problem of transcation beeing commited throw update the "
category variant
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user