@kravc/dos 1.11.6 → 1.11.8
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 +5 -1
package/package.json
CHANGED
package/src/Document.js
CHANGED
|
@@ -154,6 +154,8 @@ class Document extends Component {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
static async index(context, query = {}, options = {}) {
|
|
157
|
+
this._extendWithPartition(context, query)
|
|
158
|
+
|
|
157
159
|
let { items, ...rest } = await this._index(query, options)
|
|
158
160
|
|
|
159
161
|
const objects = items.map(item => new this(context, item))
|
|
@@ -174,6 +176,8 @@ class Document extends Component {
|
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
static async indexAll(context, query = {}, options = {}) {
|
|
179
|
+
this._extendWithPartition(context, query)
|
|
180
|
+
|
|
177
181
|
let { items, ...rest } = await this._indexAll(query, options)
|
|
178
182
|
|
|
179
183
|
const objects = items.map(item => new this(context, item))
|
|
@@ -246,7 +250,7 @@ class Document extends Component {
|
|
|
246
250
|
|
|
247
251
|
this._extendWithPartition(context, query)
|
|
248
252
|
|
|
249
|
-
await this._delete(query)
|
|
253
|
+
await this._delete(query, context)
|
|
250
254
|
|
|
251
255
|
if (this.afterDelete) {
|
|
252
256
|
await this.afterDelete(context, query, originalDocument)
|