Skip to content

Commit

Permalink
Merge pull request #185 from TogetherCrew/update-toJson-plugin
Browse files Browse the repository at this point in the history
feat: update toJson plugin
  • Loading branch information
Behzad-rabiei authored Dec 24, 2024
2 parents aeedd61 + da67cdd commit 3d93dc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@togethercrew.dev/db",
"version": "3.0.78",
"version": "3.0.79",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/models/schemas/plugins/toJSON.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const toJSON = (schema: any) => {
ret.id = ret._id.toString();
delete ret._id;
delete ret.__v;
delete ret.createdAt;
delete ret.updatedAt;
// delete ret.createdAt;
// delete ret.updatedAt;
if (transform) {
return transform(doc, ret, options);
}
Expand Down

0 comments on commit 3d93dc3

Please sign in to comment.