fix: strip trailing slashes from APP_URL and AGRARMONITOR_BASE_URL
Build and Push Multi-Platform Images / build-and-push (push) Successful in 54s
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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user