🚧 add webhookId to IWebhookDb

This commit is contained in:
Ben Hesseldieck 2021-01-14 17:30:05 +01:00
parent 8d4feda7dd
commit 624ec390db
3 changed files with 6 additions and 1 deletions

View file

@ -114,7 +114,7 @@
"sqlite3": "^4.2.0",
"sse-channel": "^3.1.1",
"tslib": "1.11.2",
"typeorm": "^0.2.24"
"typeorm": "^0.2.30"
},
"jest": {
"transform": {

View file

@ -253,6 +253,10 @@ export class ActiveWorkflowRunner {
method: webhookData.httpMethod,
} as IWebhookDb;
if (webhook.webhookPath.includes('/:') && node.webhookId) {
webhook.webhookId = node.webhookId;
}
try {
await Db.collections.Webhook?.insert(webhook);

View file

@ -57,6 +57,7 @@ export interface IWebhookDb {
webhookPath: string;
method: string;
node: string;
webhookId?: string;
}
export interface IWorkflowBase extends IWorkflowBaseWorkflow {