mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-22 18:57:23 +02:00
✨ Support locale in message queue (#1447)
This commit is contained in:
parent
a452e5b764
commit
7c5f4e3692
4 changed files with 31 additions and 24 deletions
|
@ -5,5 +5,5 @@ export function createQstashClient() {
|
|||
return null;
|
||||
}
|
||||
|
||||
return new Client({ token: process.env.QSTASH_TOKEN! });
|
||||
return new Client({ token: process.env.QSTASH_TOKEN });
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ export class EmailClient {
|
|||
queue
|
||||
.enqueueJSON({
|
||||
url: absoluteUrl("/api/send-email"),
|
||||
body: { templateName, options },
|
||||
body: { locale: this.config.locale, templateName, options },
|
||||
})
|
||||
.catch(() => {
|
||||
Sentry.captureException(new Error("Failed to queue email"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue