From 572e51961c186150a74320505f39ebf837b8c15a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 6 Dec 2024 19:42:44 -0800 Subject: [PATCH] validation: mark submission as validated --- validation/src/validator.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validation/src/validator.rs b/validation/src/validator.rs index ed70e05..11cc322 100644 --- a/validation/src/validator.rs +++ b/validation/src/validator.rs @@ -29,6 +29,7 @@ enum ValidateError{ ApiGetScriptPolicy(api::Error), ApiGetScript(api::Error), ApiUpdateSubmissionModel(api::Error), + ApiActionSubmissionValidate(api::Error), WriteDom(rbx_binary::EncodeError), Upload(rbx_asset::cookie::UploadError), Create(rbx_asset::cookie::CreateError), @@ -208,6 +209,10 @@ impl Validator{ } // update the submission model to display as validated + self.api.action_submission_validate( + api::SubmissionID(validate_info.submission_id) + ).await.map_err(ValidateError::ApiActionSubmissionValidate)?; + Ok(()) } }