Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix store email links #438

Merged
merged 2 commits into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions services/EmailService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class EmailService {
order,
orderItems: ejs.render(EmailService.itemDisplayTemplate, { items: order.items, totalCost: order.totalCost }),
pickupEvent: order.pickupEvent,
link: `${Config.client}/store/order/${order.uuid}`,
link: `${Config.client}/store/orders`,
}),
};
await this.sendEmail(data);
Expand Down Expand Up @@ -141,7 +141,7 @@ export default class EmailService {
firstName,
order,
orderItems: ejs.render(EmailService.itemDisplayTemplate, { items: order.items, totalCost: order.totalCost }),
link: `${Config.client}/store/order/${order.uuid}`,
link: `${Config.client}/store/orders`,
}),
};
await this.sendEmail(data);
Expand All @@ -160,7 +160,7 @@ export default class EmailService {
firstName,
order,
orderItems: ejs.render(EmailService.itemDisplayTemplate, { items: order.items, totalCost: order.totalCost }),
link: `${Config.client}/store/order/${order.uuid}`,
link: `${Config.client}/store/orders`,
}),
};
await this.sendEmail(data);
Expand All @@ -179,7 +179,7 @@ export default class EmailService {
firstName,
order,
orderItems: ejs.render(EmailService.itemDisplayTemplate, { items: order.items, totalCost: order.totalCost }),
link: `${Config.client}/store/order/${order.uuid}`,
link: `${Config.client}/store/orders`,
}),
};
await this.sendEmail(data);
Expand Down Expand Up @@ -219,7 +219,7 @@ export default class EmailService {
unfulfilledItems: ejs.render(EmailService.itemDisplayTemplate, { items: unfulfilledItems }),
fulfilledItems: ejs.render(EmailService.itemDisplayTemplate, { items: fulfilledItems }),
pickupEvent,
link: `${Config.client}/store/order/${orderUuid}`,
link: `${Config.client}/store/orders`,
}),
};
await this.sendEmail(data);
Expand Down
Loading