mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-18 16:57:22 +02:00
🚧 Temporarily disable message queue (#1449)
This commit is contained in:
parent
3f405003fd
commit
9b606bdbdc
3 changed files with 25 additions and 31 deletions
|
@ -72,12 +72,13 @@ export class EmailClient {
|
|||
templateName: T,
|
||||
options: SendEmailOptions<T>,
|
||||
) {
|
||||
const isQueueEnabled = false; // TODO: Enable this
|
||||
const createEmailJob = async () => {
|
||||
const client = createQstashClient();
|
||||
|
||||
if (client) {
|
||||
if (client && isQueueEnabled) {
|
||||
const queue = client.queue({
|
||||
queueName: "emails",
|
||||
queueName: "emails-mq",
|
||||
});
|
||||
|
||||
queue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue