Skip to content

Commit

Permalink
Merge pull request #711 from petracihalova/refactoring
Browse files Browse the repository at this point in the history
fix condition in application_type_handler
  • Loading branch information
lpichler authored Jul 18, 2024
2 parents 83d8e12 + 896b0c8 commit b224ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application_type_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func getApplicationTypeDaoWithTenant(c echo.Context) (dao.ApplicationTypeDao, er
return nil, err
}

if tenantId == 0 && err == nil {
if tenantId == 0 {
return dao.GetApplicationTypeDao(nil), nil
} else {
return dao.GetApplicationTypeDao(&tenantId), nil
Expand Down

0 comments on commit b224ff8

Please sign in to comment.