mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix split character + format
This commit is contained in:
parent
8c11edd7e0
commit
2665be2a9c
|
@ -115,8 +115,9 @@ export async function shopifyApiRequestAllItems(
|
||||||
});
|
});
|
||||||
if (responseData.headers.link?.includes('rel="next"')) {
|
if (responseData.headers.link?.includes('rel="next"')) {
|
||||||
uri = responseData.headers.link
|
uri = responseData.headers.link
|
||||||
.split(';')
|
.split(', ')
|
||||||
.filter((s: string) => s.includes('rel="next"'))[0]
|
.filter((s: string) => s.includes('rel="next"'))[0]
|
||||||
|
.split(';')[0]
|
||||||
.replace('<', '')
|
.replace('<', '')
|
||||||
.replace('>', '');
|
.replace('>', '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue