@steedos-labs/plugin-workflow 3.0.99 → 3.0.100
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/package.json
CHANGED
package/package.service.js
CHANGED
|
@@ -7,6 +7,7 @@ const rests = require('./src/rests');
|
|
|
7
7
|
const InstanceRecordQueue = require('./src/instance_record_queue')
|
|
8
8
|
const WebhookQueue = require('./src/webhook_queue')
|
|
9
9
|
const TimeoutAutoSubmit = require('./src/timeout_auto_submit')
|
|
10
|
+
const { getCollection } = require('./main/default/utils/collection')
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @typedef {import('moleculer').Context} Context Moleculer's Context
|
|
@@ -140,6 +141,8 @@ module.exports = {
|
|
|
140
141
|
* Service started lifecycle event handler
|
|
141
142
|
*/
|
|
142
143
|
async started(ctx) {
|
|
144
|
+
WebhookQueue.collection = await getCollection('_webhook_queue');
|
|
145
|
+
|
|
143
146
|
// 注册 app_launcher widgets: 待审核、已审核
|
|
144
147
|
try {
|
|
145
148
|
const widgetsObj = this.getObject('widgets');
|