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
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
|
|
||||||
/generated/prisma
|
/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
|
2. Also an API of my own
|
||||||
3. Production and testing env diff
|
3. Production and testing env diff
|
||||||
|
4. Testing
|
||||||
|
|
||||||
# 🏗️ SaaS Architect’s Roadmap: NestJS & DevOps
|
# 🏗️ SaaS Architect’s Roadmap: NestJS & DevOps
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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: [
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { PrismaService } from 'src/prisma/prisma.service';
|
|||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class UserService {
|
export class UserService {
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) { }
|
||||||
|
|
||||||
async createUserWithPassword(dto: RegisterUserRequestDTO) {
|
async createUserWithPassword(dto: RegisterUserRequestDTO) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user