La fonction fetch_paginated est cassée. quand on a besoin de faire des appels en plus, le Promise.all() retourne un tableau de tableaux. Ca fait que quand on fait result.push(...await Promise.all(promises)), au lieu de se retrouver avec [a, b, c, d, e, f, g, h], on se retrouve avec [a, b, c, [d, e, f], [g, h]].
Bref, on avait oublié le flatten.
En test, on a pas d'album avec plus de 200 photos, donc on l'avait juste pas vu.
La fonction
fetch_paginated
est cassée. quand on a besoin de faire des appels en plus, lePromise.all()
retourne un tableau de tableaux. Ca fait que quand on faitresult.push(...await Promise.all(promises))
, au lieu de se retrouver avec[a, b, c, d, e, f, g, h]
, on se retrouve avec[a, b, c, [d, e, f], [g, h]]
.Bref, on avait oublié le flatten.
En test, on a pas d'album avec plus de 200 photos, donc on l'avait juste pas vu.