Merge pull request #641 from automatisch/fix/stargazer-data-order

fix: Iterate stargazer data reverse-chronologically
This commit is contained in:
Ömer Faruk Aydın
2022-10-25 19:59:03 +02:00
committed by GitHub

View File

@@ -41,6 +41,9 @@ const newStargazers = async ($: IGlobalVariable) => {
pathname = links.prev?.uri;
if (response.data.length) {
// to iterate reverse-chronologically
response.data.reverse();
for (const starEntry of response.data) {
const { starred_at, user } = starEntry;
const timestamp = DateTime.fromISO(starred_at).toMillis();