submissions: tweak validator-uploaded endpoint

This commit is contained in:
Quaternions 2025-03-31 15:43:07 -07:00
parent e5e85db1fd
commit f7d7a0891d
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131

@ -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)
}