diff --git a/internal/model/entity/case.go b/internal/model/entity/case.go index eec3816..761ef86 100644 --- a/internal/model/entity/case.go +++ b/internal/model/entity/case.go @@ -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 } diff --git a/internal/usecase/case_usecase.go b/internal/usecase/case_usecase.go index 61651b6..d4d68a7 100644 --- a/internal/usecase/case_usecase.go +++ b/internal/usecase/case_usecase.go @@ -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,