mirror of
https://github.com/franjsco/tick3t-api
synced 2025-06-05 22:09:20 +02:00
rename model: user
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
const mongoose = require('mongoose');
|
import mongoose from 'mongoose';
|
||||||
const bcrypt = require('bcrypt');
|
import bcrypt from 'bcrypt';
|
||||||
|
|
||||||
const saltRounds = 10;
|
const saltRounds = 10;
|
||||||
|
|
||||||
@ -32,4 +32,4 @@ UserSchema.pre('save', function (next) {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = mongoose.model('User', UserSchema);
|
export default mongoose.model('User', UserSchema);
|
Reference in New Issue
Block a user