validation: mark submission as validated

This commit is contained in:
Quaternions 2024-12-06 19:42:44 -08:00
parent 3289376f8e
commit 572e51961c

View File

@ -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(())
}
}