🚧 Temporarily disable message queue (#1449)

This commit is contained in:
Luke Vella 2024-11-30 20:07:50 +00:00 committed by GitHub
parent 3f405003fd
commit 9b606bdbdc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 31 deletions

View file

@ -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