From 87d2827f0fea00d3448205bebf24977210e6ed86 Mon Sep 17 00:00:00 2001 From: Nanobyte Date: Tue, 5 Jan 2021 01:22:02 +0100 Subject: [PATCH] Fix errors --- src/routes/postSkipSegments.ts | 1 - src/utils/webhookUtils.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index c03ba81..06a5f2c 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -5,7 +5,6 @@ import {YouTubeAPI} from '../utils/youtubeApi'; import {getSubmissionUUID} from '../utils/getSubmissionUUID'; import fetch from 'node-fetch'; import isoDurations from 'iso8601-duration'; -import fetch from 'node-fetch'; import {getHash} from '../utils/getHash'; import {getIP} from '../utils/getIP'; import {getFormattedTime} from '../utils/getFormattedTime'; diff --git a/src/utils/webhookUtils.ts b/src/utils/webhookUtils.ts index 613e1ee..7a325c3 100644 --- a/src/utils/webhookUtils.ts +++ b/src/utils/webhookUtils.ts @@ -46,7 +46,7 @@ function dispatchEvent(scope: string, data: any): void { }) .catch(err => { Logger.warn('Couldn\'t send webhook to ' + webhook.url); - Logger.warn(e.message); + Logger.warn(err); }); }); }