We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8123dfb commit fcc4ff0Copy full SHA for fcc4ff0
1 file changed
src/actions/organization/delete.js
@@ -46,8 +46,10 @@ async function deleteOrganization({ params }) {
46
pipeline.del(organizationMembersListKey);
47
}
48
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());
51
- return pipeline.exec().then(handlePipeline);
52
+ return [];
53
54
55
deleteOrganization.allowed = checkOrganizationExists;
0 commit comments