Add queue types (#7504)
This commit is contained in:
parent
164959a0c5
commit
591a5c277c
18 changed files with 97 additions and 50 deletions
|
@ -1,7 +1,8 @@
|
|||
import { ObjectStorageFileJobData } from '@/queue/types';
|
||||
import * as Bull from 'bull';
|
||||
import { deleteObjectStorageFile } from '../../../services/drive/delete-file';
|
||||
|
||||
export default async (job: Bull.Job) => {
|
||||
export default async (job: Bull.Job<ObjectStorageFileJobData>) => {
|
||||
const key: string = job.data.key;
|
||||
|
||||
await deleteObjectStorageFile(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue