fix: Welcome mail send using worker
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -56,3 +56,5 @@ pids
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
/generated/prisma
|
||||
|
||||
dump.rdb
|
||||
|
||||
1
.woodpecker.yml
Normal file
1
.woodpecker.yml
Normal file
@@ -0,0 +1 @@
|
||||
service:
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
2. Also an API of my own
|
||||
3. Production and testing env diff
|
||||
4. Testing
|
||||
|
||||
# 🏗️ SaaS Architect’s Roadmap: NestJS & DevOps
|
||||
|
||||
|
||||
@@ -34,12 +34,12 @@ import { ExpressAdapter } from '@bull-board/express';
|
||||
},
|
||||
}),
|
||||
BullBoardModule.forRoot({
|
||||
route: '/queues', // 👈 dashboard URL
|
||||
route: '/queues', // Dashboard URL
|
||||
adapter: ExpressAdapter,
|
||||
}),
|
||||
|
||||
BullBoardModule.forFeature({
|
||||
name: 'mail', // 👈 register each queue you want visible
|
||||
name: 'mail', // Register each queue you want visible
|
||||
adapter: BullMQAdapter,
|
||||
}),
|
||||
UserModule,
|
||||
|
||||
@@ -7,7 +7,6 @@ import { UserModule } from 'src/user/user.module';
|
||||
import { JwtModule } from '@nestjs/jwt';
|
||||
import { RequestContextModule } from 'core/als/request-context.module';
|
||||
import { BullModule } from '@nestjs/bullmq';
|
||||
import { Queue } from 'bullmq';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Injectable, UnauthorizedException } from '@nestjs/common';
|
||||
import { Inject, Injectable, UnauthorizedException } from '@nestjs/common';
|
||||
import { Public } from './decorators';
|
||||
import { LoginUserRequestDTO, RegisterUserRequestDTO } from './dto';
|
||||
import * as bcrypt from 'bcrypt';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { MailService } from './mail.service';
|
||||
import { BullModule } from '@nestjs/bullmq';
|
||||
import { MailConsumer } from './mail.consumer';
|
||||
import { MailConsumer } from './mail.processor';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
|
||||
Reference in New Issue
Block a user