diff --git a/application_type_handlers.go b/application_type_handlers.go index 3f9e185c..8b3c2af4 100644 --- a/application_type_handlers.go +++ b/application_type_handlers.go @@ -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