diff --git a/paperless-backend/src/daily-digest/daily-digest.service.ts b/paperless-backend/src/daily-digest/daily-digest.service.ts index 88e54fa..84c91a3 100644 --- a/paperless-backend/src/daily-digest/daily-digest.service.ts +++ b/paperless-backend/src/daily-digest/daily-digest.service.ts @@ -17,8 +17,8 @@ export class DailyDigestService { private readonly mailService: MailService, private readonly configService: ConfigService, ) { - this.appUrl = this.configService.get('APP_URL', ''); - this.agrarmonitorBaseUrl = this.configService.get('AGRARMONITOR_BASE_URL', ''); + this.appUrl = this.configService.get('APP_URL', '').replace(/\/+$/, ''); + this.agrarmonitorBaseUrl = this.configService.get('AGRARMONITOR_BASE_URL', '').replace(/\/+$/, ''); } async sendDigestForUser(userId: string, email: string, preferredUsername?: string) {