mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 Fix the way arrays are serialized for gmail and a few other nodes (#2289)
This commit is contained in:
parent
86942c4ce7
commit
a5e714f1c4
|
@ -251,12 +251,23 @@ async function parseRequestObject(requestObject: IDataObject) {
|
|||
axiosConfig.params = requestObject.qs as IDataObject;
|
||||
}
|
||||
|
||||
if (requestObject.useQuerystring === true) {
|
||||
if (
|
||||
requestObject.useQuerystring === true ||
|
||||
// @ts-ignore
|
||||
requestObject.qsStringifyOptions?.arrayFormat === 'repeat'
|
||||
) {
|
||||
axiosConfig.paramsSerializer = (params) => {
|
||||
return stringify(params, { arrayFormat: 'repeat' });
|
||||
};
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
if (requestObject.qsStringifyOptions?.arrayFormat === 'brackets') {
|
||||
axiosConfig.paramsSerializer = (params) => {
|
||||
return stringify(params, { arrayFormat: 'brackets' });
|
||||
};
|
||||
}
|
||||
|
||||
if (requestObject.auth !== undefined) {
|
||||
// Check support for sendImmediately
|
||||
if ((requestObject.auth as IDataObject).bearer !== undefined) {
|
||||
|
|
Loading…
Reference in a new issue