Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Remove unused function

Chocobozzze815f566f37c
diff --git a/server/helpers/upload.ts b/server/helpers/upload.ts
index c94c7ab82d..3cb17edd0a 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 daefa25bd6..a7292de695 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
}