fix(orders): add type assertions for Prisma relations in checkAndSendRefillReminders
Deploy Canina / deploy (push) Failing after 28s

This commit is contained in:
parsa committed 2026-08-06 21:44:44 +03:30
1 parent 809c69f923
commit 71e19bfe43
1 file changed
+3 -3
+3 -3
View File
@@ -351,15 +351,15 @@ export class OrdersService {
const fiftyEightDaysAgo = new Date(Date.now() - 58 * 24 * 60 * 60 * 1000);
const fiftyNineDaysAgo = new Date(Date.now() - 59 * 24 * 60 * 60 * 1000);
const dueRefillOrders = await this.prisma.order.findMany({
const dueRefillOrders: any[] = await this.prisma.order.findMany({
where: {
isRefill: true,
createdAt: {
gte: fiftyNineDaysAgo,
lte: fiftyEightDaysAgo,
},
},
include: { user: true },
} as any,
include: { user: true } as any,
});
for (const order of dueRefillOrders) {