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