equipped 4.1.6 → 4.1.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.
- package/CHANGELOG.md +7 -0
- package/lib/db/mongoose/changes.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [4.1.7](https://github.com/kevinand11/equipped/compare/v4.1.6...v4.1.7) (2023-03-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* parse _id if string or ObjectId ([3aab101](https://github.com/kevinand11/equipped/commit/3aab101960a3a1fe88bea887a1b8e638ae2f3577))
|
|
11
|
+
|
|
5
12
|
### [4.1.6](https://github.com/kevinand11/equipped/compare/v4.1.5...v4.1.6) (2023-03-18)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -54,7 +54,7 @@ class MongoDbChange extends _instance_1.DbChange {
|
|
|
54
54
|
});
|
|
55
55
|
const TestId = new mongoose_1.default.Types.ObjectId('__equipped__');
|
|
56
56
|
const hydrate = (data) => model.hydrate({
|
|
57
|
-
...data, _id: new mongoose_1.default.Types.ObjectId(data._id['$oid'])
|
|
57
|
+
...data, _id: new mongoose_1.default.Types.ObjectId(data._id['$oid'] ?? data._id)
|
|
58
58
|
}).toObject({ getters: true, virtuals: true });
|
|
59
59
|
instance_1.Instance.get().eventBus.createSubscriber(topic, async (data) => {
|
|
60
60
|
const op = data.op;
|