summaryrefslogtreecommitdiff
path: root/src/queue/processors/object-storage/delete-file.ts
blob: 31050998afe24f0729d757a063bfb2f245c28097 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { ObjectStorageFileJobData } from '@/queue/types';
import * as Bull from 'bull';
import { deleteObjectStorageFile } from '../../../services/drive/delete-file';

export default async (job: Bull.Job<ObjectStorageFileJobData>) => {
	const key: string = job.data.key;

	await deleteObjectStorageFile(key);

	return 'Success';
};