|
@@ -62,7 +62,7 @@ class CartService {
|
|
where
|
|
where
|
|
${"cartId" in entity ? sql.fragment`c.cart_id = ${entity.cartId}` : sql.fragment`c.user_id = ${entity.userId}`}
|
|
${"cartId" in entity ? sql.fragment`c.cart_id = ${entity.cartId}` : sql.fragment`c.user_id = ${entity.userId}`}
|
|
`);
|
|
`);
|
|
- return CartShema.parse(cart);
|
|
|
|
|
|
+ return CartShema.nullable().parse(cart);
|
|
}
|
|
}
|
|
|
|
|
|
async getFullCart(
|
|
async getFullCart(
|
|
@@ -221,8 +221,8 @@ class CartService {
|
|
${item.cartId},
|
|
${item.cartId},
|
|
${item.productId},
|
|
${item.productId},
|
|
${item.priceAtAddition},
|
|
${item.priceAtAddition},
|
|
- ${item.activityRegId || null},
|
|
|
|
- ${item.peMemberId || null}
|
|
|
|
|
|
+ ${item.activityRegId ?? null},
|
|
|
|
+ ${item.peMemberId ?? null}
|
|
)
|
|
)
|
|
`);
|
|
`);
|
|
}
|
|
}
|