From d1fc9d87fabb047bf85c1d957637f7aaf54bb4fa Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 18 May 2022 12:51:07 +0200 Subject: [PATCH] Revert "verify: allow '0' days for reverification" This reverts commit c72fe7d77c560ad7699dd43d80dbfb98bded4d51. We could already cause the behavior by simply setting ignore-verified to false, aas that flag is basically an on/off switch for even considering outdated-after or not. So avoid the extra logic and just make the gui use the previously existing way. Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/jobs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs index 885b10d4..0477f9b8 100644 --- a/pbs-api-types/src/jobs.rs +++ b/pbs-api-types/src/jobs.rs @@ -156,7 +156,7 @@ pub const IGNORE_VERIFIED_BACKUPS_SCHEMA: Schema = BooleanSchema::new( pub const VERIFICATION_OUTDATED_AFTER_SCHEMA: Schema = IntegerSchema::new("Days after that a verification becomes outdated. (0 means always)") - .minimum(0) + .minimum(1) .schema(); #[api(