rename model: user

This commit is contained in:
Francesco Esposito 2019-08-06 18:45:04 +02:00
parent d35b2934b1
commit 29cace7304
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');
import mongoose from 'mongoose';
import bcrypt from 'bcrypt';
const saltRounds = 10;
@ -32,4 +32,4 @@ UserSchema.pre('save', function (next) {
next();
});
module.exports = mongoose.model('User', UserSchema);
export default mongoose.model('User', UserSchema);