Remove unused function
This commit is contained in:
parent
38f57175e7
commit
e815f566f3
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue