ti2 1.0.23 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/worker/index.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/worker/index.js CHANGED
@@ -40,7 +40,10 @@ const worker = ({ plugins: pluginsParam }) => (id, disconnect) => {
40
40
  return pluginsParam;
41
41
  })();
42
42
  const thePlugin = plugins.find(({ name }) => name === pluginName);
43
- const resultValue = await thePlugin[method](params);
43
+ const resultValue = await thePlugin[method]({
44
+ ...params,
45
+ plugins,
46
+ });
44
47
  console.log(`job ${jobId} > completed`);
45
48
  await saveResult({ id: jobId, resultValue });
46
49
  });