validation: use incremental model version id

This commit is contained in:
Quaternions 2024-12-10 17:38:21 -08:00
parent f110d82402
commit 1324fa106f

View File

@ -160,9 +160,7 @@ impl Validator{
groupId:None,
},data).await.map_err(ValidateError::Upload)?;
// response.AssetVersionId is not the right one
let model_version=get_model_version_number();
(response.AssetId,model_version)
(response.AssetId,response.AssetVersionId)
}else{
// create new model
let response=self.roblox_cookie.create(rbx_asset::cookie::CreateRequest{
@ -173,9 +171,7 @@ impl Validator{
groupId:None,
},data).await.map_err(ValidateError::Create)?;
// response.AssetVersionId is not the right one
let model_version=get_model_version_number();
(response.AssetId,model_version)
(response.AssetId,response.AssetVersionId)
};
// update the submission to use the validated model
@ -195,10 +191,6 @@ impl Validator{
}
}
fn get_model_version_number()->u64{
unimplemented!()
}
#[allow(dead_code)]
#[derive(Debug)]
enum ReadDomError{