Skip to content

Commit

Permalink
Add status field to user creation and update requests
Browse files Browse the repository at this point in the history
  • Loading branch information
IlhamSetiaji committed Dec 27, 2024
1 parent e2d239b commit f0fbe5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/http/handler/web/user_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (h *UserHandler) StoreUser(ctx *gin.Context) {
Gender: payload.Gender,
MobilePhone: payload.MobilePhone,
Password: string(hashedPasswordBytes),
Status: payload.Status,
}
factory := usecase.CreateUserUseCaseFactory(h.Log)
response, err := factory.Execute(usecase.ICreateUserUseCaseRequest{
Expand Down Expand Up @@ -168,6 +169,7 @@ func (h *UserHandler) UpdateUser(ctx *gin.Context) {
Email: payload.Email,
Gender: payload.Gender,
MobilePhone: payload.MobilePhone,
Status: payload.Status,
}
factory := usecase.UpdateUserUseCaseFactory(h.Log)
var roleUUID *uuid.UUID
Expand Down

0 comments on commit f0fbe5f

Please sign in to comment.