From ecab7a50ea6947924d2e629b3a9cd843eeb99ec9 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com> Date: Mon, 27 Jan 2025 18:21:22 +0100 Subject: [PATCH] hide already approved (or declined) devices (#5467) --- src/db/models/auth_request.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/models/auth_request.rs b/src/db/models/auth_request.rs index d8ca3fac..7f406581 100644 --- a/src/db/models/auth_request.rs +++ b/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)) + .filter(auth_requests::approved.is_null()) .order_by(auth_requests::creation_date.desc()) .first::(conn).ok().from_db() }}