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