mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-15 18:10:59 -07:00
14 lines
292 B
TypeScript
14 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);
|
|
}
|
|
};
|