mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-21 18:18:20 +09:00
15 lines
292 B
TypeScript
15 lines
292 B
TypeScript
import * as kue from 'kue';
|
|
|
|
import request from '../../../remote/request';
|
|
|
|
export default async (job: kue.Job, done): Promise<void> => {
|
|
try {
|
|
await request(job.data.user, job.data.to, job.data.content);
|
|
done();
|
|
} catch (e) {
|
|
console.warn(`deliver failed: ${e}`);
|
|
|
|
done(e);
|
|
}
|
|
};
|