Skip to content

Commit

Permalink
Merge pull request #388 from COS301-SE-2024/hotfix/delete_org_fix
Browse files Browse the repository at this point in the history
Fixed organizations not deleting bug
  • Loading branch information
IRIA7 authored Oct 14, 2024
2 parents 2e6b9de + 6454db5 commit c1375d8
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 c1375d8

Please sign in to comment.