formatting
This commit is contained in:
12
.env.example
12
.env.example
@@ -2,8 +2,10 @@
|
||||
PORT=3023
|
||||
|
||||
#database
|
||||
DB_HOST="localhost"
|
||||
DB_PORT=3306
|
||||
DB_USERNAME="root"
|
||||
DB_PASSWORD=""
|
||||
DB_NAME="notification_db"
|
||||
POSTGRES_HOST="localhost"
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_USER="postgres"
|
||||
POSTGRES_PASSWORD=""
|
||||
POSTGRES_DATABASE="notification_db"
|
||||
POSTGRES_SSL=false
|
||||
POSTGRES_SYNC=true
|
||||
@@ -3,8 +3,7 @@ module.exports = {
|
||||
name: "notification_server",
|
||||
script: "./dist/main.js", // cluster mode run with node only, not npm
|
||||
args: "",
|
||||
exec_mode: "cluster", // default fork
|
||||
instances: "max",
|
||||
exec_mode: "fork", // default fork
|
||||
kill_timeout: 4000,
|
||||
wait_ready: true,
|
||||
autorestart: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsInt, IsNotEmpty, IsString } from "class-validator";
|
||||
import { IsInt, IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class NotificationDto {
|
||||
@IsNotEmpty()
|
||||
@@ -12,4 +12,4 @@ export class NotificationDto {
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
phone_number: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { NotificationController } from "./notification.controller";
|
||||
import { NotificationService } from "./notification.service";
|
||||
import { SocketModule } from "../socket/socket.module";
|
||||
import { Module } from '@nestjs/common';
|
||||
import { NotificationController } from './notification.controller';
|
||||
import { NotificationService } from './notification.service';
|
||||
import { SocketModule } from '../socket/socket.module';
|
||||
|
||||
@Module({
|
||||
imports: [SocketModule],
|
||||
controllers: [NotificationController],
|
||||
providers: [NotificationService],
|
||||
})
|
||||
export class NotificationModule {
|
||||
}
|
||||
export class NotificationModule {}
|
||||
|
||||
Reference in New Issue
Block a user