File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import moment from "moment" ;
22
33const moment = require ( "moment" ) ;
4+ const mongoose = require ( "mongoose" ) ;
45
5- const Valiadtors = {
6+ const Validators = {
67 isValidEmail : ( email ) => {
78 var pattern = / ( ( [ a - z A - Z 0 - 9 \- ? \. ? ] + ) @ ( ( [ a - z A - Z 0 - 9 \- _ ] + \. ) + ) ( [ a - z ] { 2 , 3 } ) ) + $ / ;
89 return new RegExp ( pattern ) . test ( email ) ;
@@ -57,4 +58,4 @@ const Valiadtors = {
5758 } ,
5859} ;
5960
60- module . exports = Valiadtors ;
61+ module . exports = Validators ;
Original file line number Diff line number Diff line change 1- // import mongoose from "mongoose";
1+ import mongoose from "mongoose" ;
2+
23const mongoose = require ( "mongoose" ) ;
34
45const connectDB = async ( ) => {
Original file line number Diff line number Diff line change 1- // import morgan from "morgan";
1+ import morgan from "morgan" ;
22const morgan = require ( "morgan" ) ;
33
4- // import logger from "../../common/logger";
4+ import logger from "../../common/logger" ;
55const logger = require ( "../../common/logger" ) ;
66
77logger . stream = {
You can’t perform that action at this time.
0 commit comments