From e815f566f37ccc3f115fd7f0a8c3ffcbe8766c01 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jun 2022 16:28:20 +0200 Subject: Remove unused function --- server/helpers/upload.ts | 9 +-------- server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/server/helpers/upload.ts b/server/helpers/upload.ts index c94c7ab82..3cb17edd0 100644 --- a/server/helpers/upload.ts +++ b/server/helpers/upload.ts @@ -1,5 +1,4 @@ import { join } from 'path' -import { JobQueue } from '@server/lib/job-queue' import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants' function getResumableUploadPath (filename?: string) { @@ -8,14 +7,8 @@ function getResumableUploadPath (filename?: string) { return RESUMABLE_UPLOAD_DIRECTORY } -function scheduleDeleteResumableUploadMetaFile (filepath: string) { - const payload = { filepath } - JobQueue.Instance.createJob({ type: 'delete-resumable-upload-meta-file', payload }, { delay: 900 * 1000 }) // executed in 15 min -} - // --------------------------------------------------------------------------- export { - getResumableUploadPath, - scheduleDeleteResumableUploadMetaFile + getResumableUploadPath } diff --git a/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts b/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts index daefa25bd..a7292de69 100644 --- a/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts +++ b/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts @@ -5,7 +5,7 @@ import { MAbuseFull, MAbuseMessage, MAccountDefault, MUserWithNotificationSettin import { UserNotificationType } from '@shared/models' import { AbstractNotification } from '../common/abstract-notification' -export type NewAbuseMessagePayload = { +type NewAbuseMessagePayload = { abuse: MAbuseFull message: MAbuseMessage } -- cgit v1.2.3