Allow missing approval-required

This commit is contained in:
asonix 2020-07-10 18:18:05 -05:00
parent 261e52e551
commit e2feeecbb3

View file

@ -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")]