From 0507a44b8347854e61553280b978e807c69c478f Mon Sep 17 00:00:00 2001 From: francisco-leal Date: Wed, 28 Feb 2024 12:05:35 +0000 Subject: [PATCH] Add order by id to farcaster sync --- commands/sync_farcaster_followers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/sync_farcaster_followers.ts b/commands/sync_farcaster_followers.ts index 3b39258..a52b271 100644 --- a/commands/sync_farcaster_followers.ts +++ b/commands/sync_farcaster_followers.ts @@ -21,7 +21,7 @@ export default class SyncFarcasterFollowers extends BaseCommand { let users if (this.farcasterId !== '-1') { - users = await User.query().where('id', '<=', this.farcasterId) + users = await User.query().where('id', '<=', this.farcasterId).orderBy('id', 'desc') } else { users = await User.query().orderBy('id', 'desc') }