mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 21:13:08 +02:00
d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
11 lines
326 B
TypeScript
11 lines
326 B
TypeScript
import { ObjectStorageFileJobData } from '@/queue/types.js';
|
|
import Bull from 'bull';
|
|
import { deleteObjectStorageFile } from '@/services/drive/delete-file.js';
|
|
|
|
export default async (job: Bull.Job<ObjectStorageFileJobData>) => {
|
|
const key: string = job.data.key;
|
|
|
|
await deleteObjectStorageFile(key);
|
|
|
|
return 'Success';
|
|
};
|