fix(orders): add type assertions for Prisma relations in checkAndSendRefillReminders
Deploy Canina / deploy (push) Failing after 28s
Deploy Canina / deploy (push) Failing after 28s
This commit is contained in:
1 parent
809c69f923
commit
71e19bfe43
1 file changed
+3
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user