mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
fix(server): email cannot render with pretty flag (#15157)
This commit is contained in:
@@ -33,7 +33,7 @@ export class NotificationRepository implements INotificationRepository {
|
|||||||
|
|
||||||
async renderEmail(request: EmailRenderRequest): Promise<{ html: string; text: string }> {
|
async renderEmail(request: EmailRenderRequest): Promise<{ html: string; text: string }> {
|
||||||
const component = this.render(request);
|
const component = this.render(request);
|
||||||
const html = await render(component, { pretty: true });
|
const html = await render(component, { pretty: false });
|
||||||
const text = await render(component, { plainText: true });
|
const text = await render(component, { plainText: true });
|
||||||
return { html, text };
|
return { html, text };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user