payment redirect

This commit is contained in:
2025-12-01 10:34:40 +03:30
parent 016e2f24a9
commit d82c850fab
6 changed files with 206 additions and 8 deletions
@@ -526,4 +526,9 @@ export class CartService {
const cacheKey = `${this.CART_KEY_PREFIX}:${cart.userId}:${cart.restaurantId}`;
await this.cacheService.set(cacheKey, JSON.stringify(cart), this.CART_TTL);
}
async clearCart(userId: string, restaurantId: string): Promise<void> {
const cacheKey = `${this.CART_KEY_PREFIX}:${userId}:${restaurantId}`;
return this.cacheService.del(cacheKey);
}
}