@dracul/audit-backend 1.34.3 → 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.
|
|
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",
|
|
@@ -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": "
|
|
48
|
+
"gitHead": "b49ad7e4cf159322c886ac2bb91a4b40e842d60e"
|
|
49
49
|
}
|