From 8fad7fbea6e328dae0a4e4cc5e4d186094531e2d Mon Sep 17 00:00:00 2001 From: Dragos-Paul Strat Date: Mon, 30 Sep 2024 16:38:51 +0300 Subject: [PATCH] feat: [contracts] fix data for notification on expired contracts --- backend/src/modules/documents/services/crons.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/modules/documents/services/crons.service.ts b/backend/src/modules/documents/services/crons.service.ts index 48ad7d10..b216a1bc 100644 --- a/backend/src/modules/documents/services/crons.service.ts +++ b/backend/src/modules/documents/services/crons.service.ts @@ -34,6 +34,7 @@ export class CronsService { ), documentStartDate: LessThan(new Date()), }, + relations: ['volunteer', 'organization', 'volunteer.user'], }); for (const contract of contracts) {