Also sort by created_at till things work better
This commit is contained in:
parent
b12badf0c5
commit
90afb2bc32
@ -162,7 +162,7 @@ let private getInvitedUsers userId =
|
||||
WITH invite AS (SELECT id FROM invite WHERE inviter = @did)
|
||||
SELECT discord_id FROM invited_user, invite
|
||||
WHERE invite.id = invited_user.invite_id AND invited_user.accepted = true
|
||||
ORDER BY updated_at DESC LIMIT 10
|
||||
ORDER BY invited_user.updated_at DESC, invited_user.created_at DESC LIMIT 10
|
||||
"""
|
||||
|> Sql.executeAsync (fun read -> read.string "discord_id" |> uint64)
|
||||
|> Async.AwaitTask
|
||||
|
Loading…
x
Reference in New Issue
Block a user