mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
keep _id when reading from mongo
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user