Does anybody know why this won’t work once it was pushed to Zapier:
const glob = require('glob');
const path = require('path');
const myResources = {};
const myTriggers = {};
glob.sync('./resources/*.js').forEach( file => {
const resource = require(path.resolve(file));
if (resource.key) {
myResourceseresource.key] = resource;
}
});
glob.sync('./triggers/*.js').forEach( file => {
const resource = require( path.resolve(file) );
if( resource.key ){
myTriggersr resource.key ] = resource;
}
});
module.exports =
{
..
resources: myResources,
triggers:myTriggers,
authentication: require('./authentication')
}
MyResources and myTriggers is set correct local and while running the tests, but it won’t work after the push(*), while manually building up the resources data and requiring each one manually just works fine.
resources: {
test1: require('./resources/test1'),
test2: require('./resources/test2'),
...
},
Is it a limit within the Zapier CLI integration?
(*)
Following error is returned when I try to use the action:
Error: Could not find the method to call: triggers.myHook.operation.performList