Fix limit issue
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## Version 1.1.5
|
||||
|
||||
Set query limit to -1, unless manually set in config.js inside the query option. This fixes an issue with not all permissions being fetched.
|
||||
|
||||
## Version 1.1.4
|
||||
|
||||
Add optional prefix option to differentiate between different sets of data. Prefix can be set on the collection configuration in config.js eg. `test` or `prod`.
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "directus-extension-schema-sync",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "directus-extension-schema-sync",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"bin": {
|
||||
"schema-sync": "cli.js"
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "directus-extension-schema-sync",
|
||||
"description": "Sync schema and data betwreen Directus instances",
|
||||
"icon": "sync_alt",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"keywords": [
|
||||
"directus",
|
||||
"directus-extension",
|
||||
|
||||
@@ -77,7 +77,8 @@ class CollectionExporter implements IExporter {
|
||||
const getPrimary = (o: Item) => o[schema.primary];
|
||||
const getKey = this.options.getKey || getPrimary;
|
||||
|
||||
const query: Query = this.options.query || { limit: -1 };
|
||||
const query: Query = this.options.query || {};
|
||||
query.limit = query.limit || -1;
|
||||
query.fields = inclFields;
|
||||
query.sort = query.sort || [schema.primary];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user