summaryrefslogtreecommitdiff
path: root/src/queue/processors/object-storage/delete-file.ts
blob: ed22968a27365814f398bc6499aa6b8c184ba845 (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';
};