fix: Welcome mail send using worker

This commit is contained in:
SauravDhakal
2026-04-05 12:43:35 +05:45
parent 2f30be8c82
commit 4905c6f1d1
9 changed files with 9 additions and 6 deletions

2
.gitignore vendored
View File

@@ -56,3 +56,5 @@ pids
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
/generated/prisma /generated/prisma
dump.rdb

1
.woodpecker.yml Normal file
View File

@@ -0,0 +1 @@
service:

View File

@@ -16,6 +16,7 @@
2. Also an API of my own 2. Also an API of my own
3. Production and testing env diff 3. Production and testing env diff
4. Testing
# 🏗️ SaaS Architects Roadmap: NestJS & DevOps # 🏗️ SaaS Architects Roadmap: NestJS & DevOps

View File

@@ -34,12 +34,12 @@ import { ExpressAdapter } from '@bull-board/express';
}, },
}), }),
BullBoardModule.forRoot({ BullBoardModule.forRoot({
route: '/queues', // 👈 dashboard URL route: '/queues', // Dashboard URL
adapter: ExpressAdapter, adapter: ExpressAdapter,
}), }),
BullBoardModule.forFeature({ BullBoardModule.forFeature({
name: 'mail', // 👈 register each queue you want visible name: 'mail', // Register each queue you want visible
adapter: BullMQAdapter, adapter: BullMQAdapter,
}), }),
UserModule, UserModule,

View File

@@ -7,7 +7,6 @@ import { UserModule } from 'src/user/user.module';
import { JwtModule } from '@nestjs/jwt'; import { JwtModule } from '@nestjs/jwt';
import { RequestContextModule } from 'core/als/request-context.module'; import { RequestContextModule } from 'core/als/request-context.module';
import { BullModule } from '@nestjs/bullmq'; import { BullModule } from '@nestjs/bullmq';
import { Queue } from 'bullmq';
@Global() @Global()
@Module({ @Module({

View File

@@ -1,4 +1,4 @@
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { Inject, Injectable, UnauthorizedException } from '@nestjs/common';
import { Public } from './decorators'; import { Public } from './decorators';
import { LoginUserRequestDTO, RegisterUserRequestDTO } from './dto'; import { LoginUserRequestDTO, RegisterUserRequestDTO } from './dto';
import * as bcrypt from 'bcrypt'; import * as bcrypt from 'bcrypt';

View File

@@ -1,7 +1,7 @@
import { Module } from '@nestjs/common'; import { Module } from '@nestjs/common';
import { MailService } from './mail.service'; import { MailService } from './mail.service';
import { BullModule } from '@nestjs/bullmq'; import { BullModule } from '@nestjs/bullmq';
import { MailConsumer } from './mail.consumer'; import { MailConsumer } from './mail.processor';
@Module({ @Module({
imports: [ imports: [