Skip to content

Commit fcc4ff0

Browse files
authored
fix: clear cache after remove organization (#419)
1 parent 8123dfb commit fcc4ff0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/actions/organization/delete.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ async function deleteOrganization({ params }) {
4646
pipeline.del(organizationMembersListKey);
4747
}
4848
pipeline.hdel(ORGANIZATIONS_NAME_TO_ID, snakeCase(organization[ORGANIZATIONS_NAME_FIELD]));
49+
await pipeline.exec().then(handlePipeline);
50+
await redis.fsortBust(ORGANIZATIONS_INDEX, Date.now());
4951

50-
return pipeline.exec().then(handlePipeline);
52+
return [];
5153
}
5254

5355
deleteOrganization.allowed = checkOrganizationExists;

0 commit comments

Comments
 (0)