Browse Source

order pending authrequests by creation date

pull/5422/head
Stefan Melmuk 3 months ago
parent
commit
db84604602
No known key found for this signature in database GPG Key ID: 817020C608FE9C09
  1. 1
      src/db/models/auth_request.rs

1
src/db/models/auth_request.rs

@ -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()
}}
}

Loading…
Cancel
Save