Remove unused function

This commit is contained in:
Chocobozzz 2022-06-03 16:28:20 +02:00
parent 38f57175e7
commit e815f566f3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 9 deletions

View File

@ -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
}

View File

@ -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
}