Skip to content

Commit

Permalink
Fixed org not deleting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IRIA7 committed Oct 14, 2024
1 parent 117e35e commit 6454db5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 6454db5

Please sign in to comment.