diff --git a/pkg/model/submission.go b/pkg/model/submission.go index f86eba4..39727c0 100644 --- a/pkg/model/submission.go +++ b/pkg/model/submission.go @@ -5,17 +5,17 @@ import "time" type Status int32 const( - Published Status=8 - Rejected Status=7 + StatusPublished Status=8 + StatusRejected Status=7 - Publishing Status=6 - Validated Status=5 - Validating Status=4 - Accepted Status=3 + StatusPublishing Status=6 + StatusValidated Status=5 + StatusValidating Status=4 + StatusAccepted Status=3 - ChangesRequested Status=2 - Submitted Status=1 - UnderConstruction Status=0 + StatusChangesRequested Status=2 + StatusSubmitted Status=1 + StatusUnderConstruction Status=0 ) type Submission struct { diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index b5ee685..35b905f 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -22,7 +22,7 @@ func (svc *Service) CreateSubmission(ctx context.Context, request api.OptSubmiss AssetVersion: request.Value.AssetVersion.Value, Completed: false, TargetAssetID: request.Value.TargetAssetID.Value, - StatusID: model.UnderConstruction, + StatusID: model.StatusUnderConstruction, }) if err != nil{ return nil, err