From cdd9488ace192361d0c28d2c9291c4d9ea584e29 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 27 Nov 2024 17:59:29 -0800 Subject: [PATCH] prepend status with namespacing bruh golang moment --- pkg/model/submission.go | 18 +++++++++--------- pkg/service/submissions.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) 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