From d3cbe19c73e379f36d92b3d3aa730ef9892ed3af Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 14 Jul 2022 19:48:14 +0200 Subject: [PATCH] fix(backend): create resource would fail if is_oauth was not set --- backend/src/resources.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/resources.rs b/backend/src/resources.rs index 61151c5fad..2d35bdd923 100644 --- a/backend/src/resources.rs +++ b/backend/src/resources.rs @@ -188,7 +188,7 @@ async fn create_resource( resource.value, resource.description, resource.resource_type, - resource.is_oauth + resource.is_oauth.unwrap_or(false) ) .execute(&mut tx) .await?;