🐛 Fix Spotify pagination bug (#2061)

* Fixed missing value

Fixed infinite amount of interval triggered nodes executions

* Fixed inifite loop on Spotify Node

* Hide Limit parameter

* Logic operator fix

* Spotify getFollowingArtists returnAll fix

*  Small improvements to #2054

* 👕 Fix lint issue

Co-authored-by: Лебедев Иван <11215636+X-pech@users.noreply.github.com>
Co-authored-by: X-pech <lisgml@gmail.com>
This commit is contained in:
Ricardo Espinoza
2021-08-08 03:58:04 -04:00
committed by GitHub
parent 1529550b14
commit 2e309bef7f
2 changed files with 26 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ export async function spotifyApiRequestAllItems(this: IHookFunctions | IExecuteF
}
} while (
(responseData['next'] !== null && responseData['next'] !== undefined) ||
responseData[propertyName.split('.')[0]].next !== null
(responseData[propertyName.split('.')[0]].next !== null && responseData[propertyName.split('.')[0]].next !== undefined)
);
return returnData;