mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 04:23:09 +02:00
Fix bug
This commit is contained in:
parent
2c11cc3f0a
commit
6372451d17
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ export default async (job: bq.Job, done: any): Promise<void> => {
|
||||||
await request(job.data.user, job.data.to, job.data.content);
|
await request(job.data.user, job.data.to, job.data.content);
|
||||||
done();
|
done();
|
||||||
} catch (res) {
|
} catch (res) {
|
||||||
if (!res.hasOwnProperty('statusCode')) {
|
if (res == null || !res.hasOwnProperty('statusCode')) {
|
||||||
console.warn(`deliver failed (unknown): ${res}`);
|
console.warn(`deliver failed (unknown): ${res}`);
|
||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue