Skip to content
Snippets Groups Projects
Commit 6372451d authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 2c11cc3f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
done();
} catch (res) {
if (!res.hasOwnProperty('statusCode')) {
if (res == null || !res.hasOwnProperty('statusCode')) {
console.warn(`deliver failed (unknown): ${res}`);
return done();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment