Skip to content

Commit b2d2863

Browse files
committed
other changes
1 parent 828ef3e commit b2d2863

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

common/validators/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import moment from "moment";
22

33
const moment = require("moment");
4+
const mongoose = require("mongoose");
45

5-
const Valiadtors = {
6+
const Validators = {
67
isValidEmail: (email) => {
78
var pattern = /(([a-zA-Z0-9\-?\.?]+)@(([a-zA-Z0-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;

config/db.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// import mongoose from "mongoose";
1+
import mongoose from "mongoose";
2+
23
const mongoose = require("mongoose");
34

45
const connectDB = async () => {

middleware/morgan/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// import morgan from "morgan";
1+
import morgan from "morgan";
22
const morgan = require("morgan");
33

4-
// import logger from "../../common/logger";
4+
import logger from "../../common/logger";
55
const logger = require("../../common/logger");
66

77
logger.stream = {

0 commit comments

Comments
 (0)