mirror of
https://github.com/immich-app/immich.git
synced 2026-03-06 18:17:27 +03:00
feat: use my.immich.app for externalDomain fallback (#17209)
* feat: use my.immich.app for externalDomain fallback This is probably more useful than localhost. * chore: remove port param * fix: update expected value in tests * fix: update expected value in e2e
This commit is contained in:
@@ -265,7 +265,7 @@ describe(NotificationService.name, () => {
|
||||
await expect(sut.sendTestEmail('', configs.smtpTransport.notifications.smtp)).resolves.not.toThrow();
|
||||
expect(mocks.notification.renderEmail).toHaveBeenCalledWith({
|
||||
template: EmailTemplate.TEST_EMAIL,
|
||||
data: { baseUrl: 'http://localhost:2283', displayName: userStub.admin.name },
|
||||
data: { baseUrl: 'https://my.immich.app', displayName: userStub.admin.name },
|
||||
});
|
||||
expect(mocks.notification.sendEmail).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
@@ -306,7 +306,7 @@ describe(NotificationService.name, () => {
|
||||
).resolves.not.toThrow();
|
||||
expect(mocks.notification.renderEmail).toHaveBeenCalledWith({
|
||||
template: EmailTemplate.TEST_EMAIL,
|
||||
data: { baseUrl: 'http://localhost:2283', displayName: userStub.admin.name },
|
||||
data: { baseUrl: 'https://my.immich.app', displayName: userStub.admin.name },
|
||||
});
|
||||
expect(mocks.notification.sendEmail).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
|
||||
Reference in New Issue
Block a user