Skip to content

Commit

Permalink
Chgt du model à exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-mini committed Oct 10, 2022
1 parent eda9ea6 commit d5fbd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ const uniqueValidator = require('mongoose-unique-validator');
userSchema.plugin(uniqueValidator);

//Exportation du schéma en tant que modèle Mongoose.
module.exports = mongoose.model('Sauce', userSchema);
module.exports = mongoose.model('User', userSchema);

0 comments on commit d5fbd1f

Please sign in to comment.