Compare commits

...

1 Commits

Author SHA1 Message Date
RustamRu
558245f876 delete masters _id
Some checks failed
platform/multy-stub/pipeline/head There was a failure building this commit
2025-01-12 11:12:24 +03:00

View File

@@ -11,6 +11,9 @@ const schema = new Schema({
schema.set('toJSON', {
virtuals: true,
versionKey: false,
transform(_doc, ret) {
delete ret._id;
}
})
schema.virtual('id').get(function () {