keep _id when reading from mongo

This commit is contained in:
LeonOstrez
2025-01-17 11:28:23 +01:00
parent 48a287b90a
commit 84e860d1d9

View File

@@ -43,7 +43,6 @@ const schema = new mongoose.Schema({
schema.set('toJSON', {
/* eslint-disable */
transform: (doc, ret, options) => {
delete ret._id;
delete ret.password;
return ret;
},