@orion-js/file-manager 3.0.24 → 3.0.25

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.
@@ -16,7 +16,7 @@ exports.default = (0, resolvers_1.resolver)({
16
16
  mutation: true,
17
17
  async resolve({ fileId }, viewer) {
18
18
  const file = await Files_1.default.findOne({ createdBy: viewer.userId, _id: fileId });
19
- await file.update({ $set: { status: 'uploaded' } });
19
+ await Files_1.default.updateOne(file, { $set: { status: 'uploaded' } });
20
20
  return file;
21
21
  }
22
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-js/file-manager",
3
- "version": "3.0.24",
3
+ "version": "3.0.25",
4
4
  "main": "lib/index.js",
5
5
  "author": "nicolaslopezj",
6
6
  "license": "MIT",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "5ac1c68e72af3dbeaf8eb5c2a04d5325da2a7e3f"
42
+ "gitHead": "80d7ff4f8452fdc0d046ed7a37dde041916a2906"
43
43
  }