diff --git a/packages/api/emails/bookstore-approved/index.ts b/packages/api/emails/bookstore-approved/index.ts index bcee5f555..c550536d5 100644 --- a/packages/api/emails/bookstore-approved/index.ts +++ b/packages/api/emails/bookstore-approved/index.ts @@ -7,7 +7,7 @@ export default class extends Email { locale: string; newMedalLevel: number | null; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/bookstore-approved`; constructor(data: { user: user; diff --git a/packages/api/emails/bookstore-suggested/index.ts b/packages/api/emails/bookstore-suggested/index.ts index 6cd47e602..3030121c7 100644 --- a/packages/api/emails/bookstore-suggested/index.ts +++ b/packages/api/emails/bookstore-suggested/index.ts @@ -5,7 +5,7 @@ export default class extends Email { data: { user: user | null; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/bookstore-suggested`; constructor(data: { user: user | null }) { super(); diff --git a/packages/api/emails/edge-model-ready/index.ts b/packages/api/emails/edge-model-ready/index.ts index 0bf74ca2d..e85fd646a 100644 --- a/packages/api/emails/edge-model-ready/index.ts +++ b/packages/api/emails/edge-model-ready/index.ts @@ -11,7 +11,7 @@ type Data = InputData & { }; export default class extends Email { data: Data; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/edge-model-ready`; constructor(data: InputData) { super(); diff --git a/packages/api/emails/edge-photo-sent/index.ts b/packages/api/emails/edge-photo-sent/index.ts index 337745d59..625f39d5b 100644 --- a/packages/api/emails/edge-photo-sent/index.ts +++ b/packages/api/emails/edge-photo-sent/index.ts @@ -11,7 +11,7 @@ type Data = InputData & { }; export default class extends Email { data: Data; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/edge-photo-sent`; constructor(data: InputData) { super(); diff --git a/packages/api/emails/edges-published-with-creator/index.ts b/packages/api/emails/edges-published-with-creator/index.ts index 4d9e783a7..0c048f7d2 100644 --- a/packages/api/emails/edges-published-with-creator/index.ts +++ b/packages/api/emails/edges-published-with-creator/index.ts @@ -9,7 +9,7 @@ export default class extends Email { extraCreatorPoints: number; newMedalLevel: number | null; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/edges-published-with-creator`; constructor(data: { user: user; diff --git a/packages/api/emails/edges-published-with-photographer/index.ts b/packages/api/emails/edges-published-with-photographer/index.ts index caea4f1ac..ea1702768 100644 --- a/packages/api/emails/edges-published-with-photographer/index.ts +++ b/packages/api/emails/edges-published-with-photographer/index.ts @@ -9,7 +9,7 @@ export default class extends Email { extraPhotographerPoints: number; newMedalLevel: number | null; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/edges-published-with-photographer`; constructor(data: { user: user; diff --git a/packages/api/emails/feedback-sent/index.ts b/packages/api/emails/feedback-sent/index.ts index 3bba5132c..dfa7c46c1 100644 --- a/packages/api/emails/feedback-sent/index.ts +++ b/packages/api/emails/feedback-sent/index.ts @@ -9,7 +9,7 @@ type Data = InputData & { }; export default class extends Email { data: Data; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/feedback-sent`;; constructor(data: Data) { super(); diff --git a/packages/api/emails/presentation-sentence-approved/index.ts b/packages/api/emails/presentation-sentence-approved/index.ts index 3f7a87494..ac8f2135a 100644 --- a/packages/api/emails/presentation-sentence-approved/index.ts +++ b/packages/api/emails/presentation-sentence-approved/index.ts @@ -5,7 +5,7 @@ export default class extends Email { data: { user: user; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/presentation-sentence-approved`; constructor(data: { user: user }) { super(); diff --git a/packages/api/emails/presentation-sentence-refused/index.ts b/packages/api/emails/presentation-sentence-refused/index.ts index 21750a4d0..83e1c8080 100644 --- a/packages/api/emails/presentation-sentence-refused/index.ts +++ b/packages/api/emails/presentation-sentence-refused/index.ts @@ -5,7 +5,7 @@ export default class extends Email { data: { user: user; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/presentation-sentence-refused`; constructor(data: { user: user }) { super(); diff --git a/packages/api/emails/presentation-sentence-requested/index.ts b/packages/api/emails/presentation-sentence-requested/index.ts index d1a2f8838..628b1b859 100644 --- a/packages/api/emails/presentation-sentence-requested/index.ts +++ b/packages/api/emails/presentation-sentence-requested/index.ts @@ -6,7 +6,7 @@ export default class extends Email { user: user; presentationText: string; }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/presentation-sentence-requested`; constructor(data: { user: user; presentationText: string }) { super(); diff --git a/packages/api/emails/reset-password/index.ts b/packages/api/emails/reset-password/index.ts index 75798955c..ce743eb5b 100644 --- a/packages/api/emails/reset-password/index.ts +++ b/packages/api/emails/reset-password/index.ts @@ -3,7 +3,7 @@ import type { user } from "~prisma-schemas/schemas/dm"; export default class extends Email { data: { user: user; token: string }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/reset-password`; sendCopyToAdmin = false; diff --git a/packages/api/emails/subscription-issue-added/index.ts b/packages/api/emails/subscription-issue-added/index.ts index a310b7088..9faa8bc47 100644 --- a/packages/api/emails/subscription-issue-added/index.ts +++ b/packages/api/emails/subscription-issue-added/index.ts @@ -3,7 +3,7 @@ import type { user } from "~prisma-schemas/schemas/dm"; export default class extends Email { data: { user: user; publicationName: string; issuenumber: string }; - templatePath = import.meta.dirname; + templatePath = `${import.meta.dirname}/emails/subscription-issue-added`; constructor(data: { user: user;