submissions: tweak validator-uploaded endpoint
This commit is contained in:
parent
e5e85db1fd
commit
f7d7a0891d
@ -63,8 +63,6 @@ func (svc *Service) ActionSubmissionUploaded(ctx context.Context, params interna
|
||||
// transaction
|
||||
smap := datastore.Optional()
|
||||
smap.Add("status_id", model.SubmissionStatusUploaded)
|
||||
if params.TargetAssetID.IsSet() {
|
||||
smap.AddNotNil("target_asset_id", params.TargetAssetID.Value)
|
||||
}
|
||||
smap.Add("uploaded_asset_id", params.UploadedAssetID)
|
||||
return svc.DB.Submissions().IfStatusThenUpdate(ctx, params.SubmissionID, []model.SubmissionStatus{model.SubmissionStatusUploading}, smap)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user