We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2053947 commit 4009d7fCopy full SHA for 4009d7f
1 file changed
src/actions/organization/delete.js
@@ -1,4 +1,5 @@
1
const { ActionTransport } = require('@microfleet/core');
2
+const snakeCase = require('lodash/snakeCase');
3
const redisKey = require('../../utils/key');
4
const handlePipeline = require('../../utils/pipelineError');
5
const { checkOrganizationExists, getInternalData } = require('../../utils/organization');
@@ -44,7 +45,7 @@ async function deleteOrganization({ params }) {
44
45
});
46
pipeline.del(organizationMembersListKey);
47
}
- pipeline.hdel(ORGANIZATIONS_NAME_TO_ID, organization[ORGANIZATIONS_NAME_FIELD]);
48
+ pipeline.hdel(ORGANIZATIONS_NAME_TO_ID, snakeCase(organization[ORGANIZATIONS_NAME_FIELD]));
49
50
return pipeline.exec().then(handlePipeline);
51
0 commit comments