ti2 1.0.18 → 1.0.21
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.
- package/cli.js +2 -0
- package/controllers/app.js +1 -1
- package/package.json +1 -1
- package/worker/index.js +1 -1
package/cli.js
CHANGED
|
@@ -21,6 +21,7 @@ program.command('dbapp')
|
|
|
21
21
|
)
|
|
22
22
|
.action(async (integration, action) => {
|
|
23
23
|
await migrateApp({ integrationId: integration, action });
|
|
24
|
+
process.exit(0);
|
|
24
25
|
});
|
|
25
26
|
|
|
26
27
|
program.command('db')
|
|
@@ -31,6 +32,7 @@ program.command('db')
|
|
|
31
32
|
)
|
|
32
33
|
.action(async action => {
|
|
33
34
|
await migrate({ action });
|
|
35
|
+
process.exit(0);
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
program.parse();
|
package/controllers/app.js
CHANGED
package/package.json
CHANGED
package/worker/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const throng = require('throng');
|
|
2
2
|
require('util').inspect.defaultOptions.depth = null;
|
|
3
|
-
const fakePlugin = require('../test/plugin');
|
|
4
3
|
|
|
5
4
|
const { queue, saveResult } = require('./queue');
|
|
6
5
|
|
|
@@ -35,6 +34,7 @@ const worker = ({ plugins: pluginsParam }) => (id, disconnect) => {
|
|
|
35
34
|
console.log(`job ${jobId} > running ${pluginName}:${method} for ${userId}`);
|
|
36
35
|
const plugins = await (async () => {
|
|
37
36
|
if (inTesting) {
|
|
37
|
+
const fakePlugin = require('../test/plugin');
|
|
38
38
|
return [...pluginsParam, await new fakePlugin({ name: pluginName })];
|
|
39
39
|
}
|
|
40
40
|
return pluginsParam;
|