mirror of
https://github.com/immich-app/immich.git
synced 2025-01-27 22:22:45 +01:00
fix(server): email cannot render with pretty flag (#15157)
This commit is contained in:
parent
4aabbec742
commit
36a9ae7c54
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export class NotificationRepository implements INotificationRepository {
|
|||
|
||||
async renderEmail(request: EmailRenderRequest): Promise<{ html: string; text: string }> {
|
||||
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 });
|
||||
return { html, text };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue