@dracul/audit-backend 1.34.1 → 1.34.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,7 +108,7 @@ const createAudit = async function (authUser, {
108
108
  });
109
109
  doc.id = doc._id;
110
110
  await doc.populate('user');
111
- return doc;
111
+ return await doc.save();
112
112
  } catch (error) {
113
113
  if (error.name == "ValidationError") {
114
114
  throw new UserInputError(error.message, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dracul/audit-backend",
3
- "version": "1.34.1",
3
+ "version": "1.34.7",
4
4
  "description": "Audit Backend",
5
5
  "author": "Cristian Incarnato <cristian.cdi@gmail.com>",
6
6
  "homepage": "https://github.com/draculjs/modular-framework#readme",
@@ -32,7 +32,7 @@
32
32
  "@dracul/logger-backend": "^1.34.0",
33
33
  "@dracul/notification-backend": "^1.34.0",
34
34
  "@dracul/settings-backend": "^1.34.0",
35
- "@dracul/user-backend": "^1.34.1"
35
+ "@dracul/user-backend": "^1.34.3"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@graphql-tools/load-files": "^7.0.0",
@@ -45,5 +45,5 @@
45
45
  "mongoose-softdelete": "1.1.0",
46
46
  "mongoose-unique-validator": "^2.0.3 || ^5.0.0"
47
47
  },
48
- "gitHead": "fd7611b1a661cc160c7f691160df8327db8d0835"
48
+ "gitHead": "b49ad7e4cf159322c886ac2bb91a4b40e842d60e"
49
49
  }