fix(backend): Resolve compilation error in update_user.go
This commit is contained in:
parent
78ce341370
commit
7bb081f7c2
1 changed files with 0 additions and 4 deletions
|
|
@ -41,10 +41,6 @@ func (uc *UpdateUserUseCase) Execute(ctx context.Context, id, tenantID string, i
|
||||||
user.Email = *input.Email
|
user.Email = *input.Email
|
||||||
}
|
}
|
||||||
if input.Active != nil {
|
if input.Active != nil {
|
||||||
user.Active = *input.Active
|
|
||||||
// Status field in entity is "active" | "inactive" ??
|
|
||||||
// Repo uses user.Status string. Entity has Status string.
|
|
||||||
// Let's assume input.Active (bool) maps to status string for now or check entity
|
|
||||||
if *input.Active {
|
if *input.Active {
|
||||||
user.Status = "ACTIVE"
|
user.Status = "ACTIVE"
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue