From 1bd403083c52c0964a0c81491a9e9ed88fce1d05 Mon Sep 17 00:00:00 2001 From: Eric-Vondee Date: Fri, 23 Aug 2024 11:35:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/video-uploader/src/utils/logger.ts | 2 +- packages/video-uploader/src/utils/twitter.ts | 6 +++--- packages/video-uploader/src/utils/youtube.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/video-uploader/src/utils/logger.ts b/packages/video-uploader/src/utils/logger.ts index c9cde5c6e..052744b54 100644 --- a/packages/video-uploader/src/utils/logger.ts +++ b/packages/video-uploader/src/utils/logger.ts @@ -1,8 +1,8 @@ +import { config } from 'dotenv'; import { existsSync, mkdirSync } from 'fs'; import { join } from 'path'; import winston from 'winston'; import winstonDaily from 'winston-daily-rotate-file'; -import { config } from 'dotenv'; config(); // logs dir diff --git a/packages/video-uploader/src/utils/twitter.ts b/packages/video-uploader/src/utils/twitter.ts index 637c651b2..3e691097b 100644 --- a/packages/video-uploader/src/utils/twitter.ts +++ b/packages/video-uploader/src/utils/twitter.ts @@ -1,9 +1,9 @@ -import { logger } from './logger'; import crypto from 'crypto'; -import OAuth from 'oauth-1.0a'; +import { config } from 'dotenv'; import fs from 'fs'; import fetch from 'node-fetch'; -import { config } from 'dotenv'; +import OAuth from 'oauth-1.0a'; +import { logger } from './logger'; config(); function delay(ms: number): Promise { diff --git a/packages/video-uploader/src/utils/youtube.ts b/packages/video-uploader/src/utils/youtube.ts index 8bfcfe02d..dfd1f32d5 100644 --- a/packages/video-uploader/src/utils/youtube.ts +++ b/packages/video-uploader/src/utils/youtube.ts @@ -1,5 +1,5 @@ -import { youtube_v3, google } from 'googleapis'; import { createReadStream, createWriteStream, unlinkSync } from 'fs'; +import { google, youtube_v3 } from 'googleapis'; import https from 'https'; function delay(ms: number): Promise {