prepend status with namespacing
bruh golang moment
This commit is contained in:
parent
b31a8a90ff
commit
cdd9488ace
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user