import { Injectable } from '@nestjs/common'; import { Queue } from 'bull'; import { InjectQueue } from '@nestjs/bull'; @Injectable() class StatusService { constructor(@InjectQueue('withdrawal') private withdrawalQueue: Queue) {} async status(): Promise { return { status: '', error: false, }; } main(): string { return `This is tornado.cash Relayer service. Check the /status for settings`; } async withdrawal(data): Promise { const job = await this.withdrawalQueue.add(data) return String(job.id); } } export { StatusService };