From 5c24a76fbd0de314f370a4e3d3ca897d2b7eaa3d Mon Sep 17 00:00:00 2001 From: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:06:59 +0530 Subject: [PATCH] fix(api_keys): fix internal server error being thrown when trying to update or delete non-existent API key (#3762) --- crates/storage_impl/src/errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/storage_impl/src/errors.rs b/crates/storage_impl/src/errors.rs index 14d1eb2db6..9e3ef903f5 100644 --- a/crates/storage_impl/src/errors.rs +++ b/crates/storage_impl/src/errors.rs @@ -139,6 +139,7 @@ impl StorageError { pub fn is_db_not_found(&self) -> bool { match self { Self::DatabaseError(err) => matches!(err.current_context(), DatabaseError::NotFound), + Self::ValueNotFound(_) => true, _ => false, } }