From e2feeecbb3e3767e64d00ee1c2e3d1317083ec78 Mon Sep 17 00:00:00 2001 From: asonix Date: Fri, 10 Jul 2020 18:18:05 -0500 Subject: [PATCH] Allow missing approval-required --- src/jobs/instance.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jobs/instance.rs b/src/jobs/instance.rs index 5f7c3a2..dcc0e7d 100644 --- a/src/jobs/instance.rs +++ b/src/jobs/instance.rs @@ -99,6 +99,10 @@ impl ActixJob for QueryInstance { } } +fn default_approval() -> bool { + false +} + #[derive(serde::Deserialize)] struct Instance { title: String, @@ -106,6 +110,8 @@ struct Instance { description: String, version: String, registrations: bool, + + #[serde(default = "default_approval")] approval_required: bool, #[serde(rename = "contact_account")]