diff --git a/backend/src/modules/organizations/controllers/organizationController.ts b/backend/src/modules/organizations/controllers/organizationController.ts index 7effdf56..071ef0fc 100644 --- a/backend/src/modules/organizations/controllers/organizationController.ts +++ b/backend/src/modules/organizations/controllers/organizationController.ts @@ -95,7 +95,7 @@ export const deleteOrganization = async (req: Request, res: Response) => { organizationId, userId, ); - clearCachePattern(`__express__/api/organizations/${organizationId}`); + clearCachePattern(`__express__/api/organizations*`); sendResponse(res, response); } catch (err) { handleError(res, err); @@ -322,7 +322,7 @@ export const getOrganizations = [ const paginationParams: PaginationParams = { offset: Number(offset) || 0, - limit: Number(limit) || 10, + limit: Number(limit) || 99, }; const response = await organizationService.getOrganizations(