@@ -418,7 +418,7 @@ func (uskh UpdateSSHKeyHandler) Handle(c echo.Context) error {
418418 // Get Tenant for this org
419419 tnDAO := cdbm .NewTenantDAO (uskh .dbSession )
420420
421- tenants , err := tnDAO .GetAllByOrg (ctx , nil , org , nil )
421+ tenants , _ , err := tnDAO .GetAll (ctx , nil , cdbm. TenantFilterInput { Orgs : [] string { org }}, cdbp. PageInput { Limit : cutil . GetPtr ( cdbp . TotalLimit )} , nil )
422422 if err != nil {
423423 logger .Error ().Err (err ).Msg ("error retrieving Tenant for this org" )
424424 return cutil .NewAPIErrorResponse (c , http .StatusInternalServerError , "Failed to retrieve Tenant for org" , nil )
@@ -586,7 +586,7 @@ func (gskh GetSSHKeyHandler) Handle(c echo.Context) error {
586586 // Get Tenant for this org
587587 tnDAO := cdbm .NewTenantDAO (gskh .dbSession )
588588
589- tenants , err := tnDAO .GetAllByOrg (ctx , nil , org , nil )
589+ tenants , _ , err := tnDAO .GetAll (ctx , nil , cdbm. TenantFilterInput { Orgs : [] string { org }}, cdbp. PageInput { Limit : cutil . GetPtr ( cdbp . TotalLimit )} , nil )
590590 if err != nil {
591591 logger .Error ().Err (err ).Msg ("error retrieving Tenant for this org" )
592592 return cutil .NewAPIErrorResponse (c , http .StatusInternalServerError , "Failed to retrieve Tenant for org" , nil )
@@ -706,7 +706,7 @@ func (gaskh GetAllSSHKeyHandler) Handle(c echo.Context) error {
706706 // Get Tenant for this org
707707 tnDAO := cdbm .NewTenantDAO (gaskh .dbSession )
708708
709- tenants , err := tnDAO .GetAllByOrg (ctx , nil , org , nil )
709+ tenants , _ , err := tnDAO .GetAll (ctx , nil , cdbm. TenantFilterInput { Orgs : [] string { org }}, cdbp. PageInput { Limit : cutil . GetPtr ( cdbp . TotalLimit )} , nil )
710710 if err != nil {
711711 logger .Error ().Err (err ).Msg ("error retrieving Tenant for this org" )
712712 return cutil .NewAPIErrorResponse (c , http .StatusInternalServerError , "Failed to retrieve Tenant for org" , nil )
@@ -852,7 +852,7 @@ func (dskh DeleteSSHKeyHandler) Handle(c echo.Context) error {
852852 // Get Tenant for this org
853853 tnDAO := cdbm .NewTenantDAO (dskh .dbSession )
854854
855- tenants , err := tnDAO .GetAllByOrg (ctx , nil , org , nil )
855+ tenants , _ , err := tnDAO .GetAll (ctx , nil , cdbm. TenantFilterInput { Orgs : [] string { org }}, cdbp. PageInput { Limit : cutil . GetPtr ( cdbp . TotalLimit )} , nil )
856856 if err != nil {
857857 logger .Error ().Err (err ).Msg ("error retrieving Tenant for this org" )
858858 return cutil .NewAPIErrorResponse (c , http .StatusInternalServerError , "Failed to retrieve Tenant for org" , nil )
0 commit comments