mirror of https://github.com/franjsco/tick3t-api
rename model: user
This commit is contained in:
parent
d35b2934b1
commit
29cace7304
|
@ -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);
|
Loading…
Reference in New Issue