@kravc/dos 1.11.5 → 1.11.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/package.json +1 -1
- package/src/Document.js +2 -2
package/package.json
CHANGED
package/src/Document.js
CHANGED
|
@@ -150,7 +150,7 @@ class Document extends Component {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
static _read({ id = 'NONE' }) {
|
|
153
|
-
return cloneDeep(STORE
|
|
153
|
+
return cloneDeep(get(STORE, `${this.name}.${id}`))
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
static async index(context, query = {}, options = {}) {
|
|
@@ -246,7 +246,7 @@ class Document extends Component {
|
|
|
246
246
|
|
|
247
247
|
this._extendWithPartition(context, query)
|
|
248
248
|
|
|
249
|
-
await this._delete(query)
|
|
249
|
+
await this._delete(query, context)
|
|
250
250
|
|
|
251
251
|
if (this.afterDelete) {
|
|
252
252
|
await this.afterDelete(context, query, originalDocument)
|