kuzzle 2.16.6 → 2.16.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.
|
@@ -269,7 +269,7 @@ class CollectionController extends NativeController {
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
|
-
* Reset a collection by removing all documents
|
|
272
|
+
* Reset a collection by removing all documents while keeping the existing mapping
|
|
273
273
|
*
|
|
274
274
|
* @param {KuzzleRequest} request
|
|
275
275
|
* @returns {Promise.<Object>}
|
|
@@ -277,13 +277,7 @@ class CollectionController extends NativeController {
|
|
|
277
277
|
async truncate (request) {
|
|
278
278
|
const { index, collection } = request.getIndexAndCollection();
|
|
279
279
|
|
|
280
|
-
await this.ask('core:storage:public:collection:
|
|
281
|
-
await this.ask(
|
|
282
|
-
'core:storage:public:document:deleteByQuery',
|
|
283
|
-
index,
|
|
284
|
-
collection,
|
|
285
|
-
{},
|
|
286
|
-
{ fetch: false, refresh: 'wait_for' });
|
|
280
|
+
await this.ask('core:storage:public:collection:truncate', index, collection);
|
|
287
281
|
|
|
288
282
|
return {
|
|
289
283
|
acknowledged: true
|
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.16.
|
|
4
|
+
"version": "2.16.7",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kuzzle": "bin/start-kuzzle-server"
|