Skip to content

Commit

Permalink
api: Fix email template path
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Jan 24, 2025
1 parent 2944226 commit 84d63dd
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/api/emails/bookstore-approved/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/bookstore-suggested/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/edge-model-ready/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/edge-photo-sent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/edges-published-with-creator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/feedback-sent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/presentation-sentence-refused/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/reset-password/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion packages/api/emails/subscription-issue-added/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84d63dd

Please sign in to comment.