validation: use incremental model version id
This commit is contained in:
parent
f110d82402
commit
1324fa106f
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user