🐛 Fix issue with _where parameter with request library (#2352)

Fixes #2324
This commit is contained in:
Ricardo Espinoza 2021-10-21 20:14:52 -04:00 committed by GitHub
parent 2437356f91
commit b5f12bab00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,9 @@ export async function strapiApiRequest(this: IExecuteFunctions | ILoadOptionsFun
qs,
uri: uri || `${credentials.url}${resource}`,
json: true,
qsStringifyOptions: {
arrayFormat: 'indice',
},
};
if (Object.keys(headers).length !== 0) {
options.headers = Object.assign({}, options.headers, headers);