src/integrations/intercom/setup.js
Function createCollections
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.createCollections = (Implementation, apimap, collectionName) => {
const { modelsManager } = inject();
const collectionDisplayName = _.capitalize(collectionName);
const model = modelsManager.getModels()[collectionName];
// jshint camelcase: false