monkeeShark/src/queue/processors/http/deliver.ts

8 lines
204 B
TypeScript
Raw Normal View History

2018-04-04 14:12:35 +00:00
import * as kue from 'kue';
2018-04-04 14:22:48 +00:00
import request from '../../../remote/request';
2018-04-04 14:12:35 +00:00
export default async (job: kue.Job, done): Promise<void> => {
2018-04-04 14:22:48 +00:00
await request(job.data.user, job.data.to, job.data.content);
};