Skip to content

Commit

Permalink
feat: Make static status pending while create cases
Browse files Browse the repository at this point in the history
  • Loading branch information
trianggianggara committed Jul 12, 2024
1 parent 4246a86 commit fe69786
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions internal/model/entity/case.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (m *CaseModel) BeforeCreate(tx *gorm.DB) (err error) {
m.IsActive = true
m.CreatedAt = *date.DateTodayLocal()
m.CreatedBy = constant.DB_DEFAULT_CREATED_BY
m.Status = "Pending"
return
}

Expand Down
1 change: 0 additions & 1 deletion internal/usecase/case_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ func (u *CaseUsecase) Create(ctx context.Context, payload dto.CreateCaseRequest)
CaseNumber: payload.CaseNumber,
CaseDescription: payload.CaseDescription,
CaseDetail: payload.CaseDetail,
Status: payload.Status,
UploaderID: payload.UploaderID,
ClientID: payload.ClientID,
ContributorID: payload.ContributorID,
Expand Down

0 comments on commit fe69786

Please sign in to comment.