Small improvements to OPTIONS request for webhooks

This commit is contained in:
Jan Oberhauser
2020-07-24 16:43:23 +02:00
parent 82d94873fc
commit 9c266e7aea
3 changed files with 15 additions and 16 deletions

View File

@@ -87,10 +87,10 @@ export class ActiveWebhooks {
/**
* Gets all request methods associated with a single webhook
* @param path
* @param path
*/
getWebhookMethods(path: string): string[] {
let methods : string[] = [];
const methods : string[] = [];
Object.keys(this.webhookUrls)
.filter(key => key.includes(path))