fix: strip trailing slashes from APP_URL and AGRARMONITOR_BASE_URL
Build and Push Multi-Platform Images / build-and-push (push) Successful in 54s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 20:34:35 +02:00
parent 184ac3f5cc
commit 15e06bd60f
@@ -17,8 +17,8 @@ export class DailyDigestService {
private readonly mailService: MailService, private readonly mailService: MailService,
private readonly configService: ConfigService, private readonly configService: ConfigService,
) { ) {
this.appUrl = this.configService.get<string>('APP_URL', ''); this.appUrl = this.configService.get<string>('APP_URL', '').replace(/\/+$/, '');
this.agrarmonitorBaseUrl = this.configService.get<string>('AGRARMONITOR_BASE_URL', ''); this.agrarmonitorBaseUrl = this.configService.get<string>('AGRARMONITOR_BASE_URL', '').replace(/\/+$/, '');
} }
async sendDigestForUser(userId: string, email: string, preferredUsername?: string) { async sendDigestForUser(userId: string, email: string, preferredUsername?: string) {