1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-02 02:24:59 +00:00

order pending authrequests by creation date

This commit is contained in:
Stefan Melmuk 2025-01-22 18:56:54 +01:00
parent d7dffb2f6d
commit db84604602
No known key found for this signature in database
GPG key ID: 817020C608FE9C09

View file

@ -150,6 +150,7 @@ impl AuthRequest {
auth_requests::table
.filter(auth_requests::user_uuid.eq(user_uuid))
.filter(auth_requests::request_device_identifier.eq(device_uuid))
.order_by(auth_requests::creation_date.desc())
.first::<AuthRequestDb>(conn).ok().from_db()
}}
}