Skip to content

Commit

Permalink
change from es5 import to commonjs
Browse files Browse the repository at this point in the history
relates #18
  • Loading branch information
amusameh committed Oct 24, 2019
1 parent 0fa9854 commit c7e95a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils/isValidMongoID.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const mongoose = require('mongoose');
const mongoose = require("mongoose");

const { ObjectId } = mongoose.Types;

Expand All @@ -12,4 +12,4 @@ const isValidMongoObjectId = id => {
return false;
};

export default isValidMongoObjectId;
module.exports = isValidMongoObjectId;

0 comments on commit c7e95a8

Please sign in to comment.