probot / reminders

set reminders on Issues and Pull Requests
https://github.com/apps/reminders
ISC License
162 stars 24 forks source link

Handle malformed metadata #15

Closed bkeepers closed 6 years ago

bkeepers commented 6 years ago

Fixes this error:

TypeError: Cannot read property 'when' of undefined
  File "/app/lib/reminders.js", line 57, col 26, in Promise.all.resp.data.items.map
    if (moment(reminder.when) < moment()) {
  File "internal/process/next_tick.js", line 135, col 7, in process._tickDomainCallback

Likely caused by someone manually editing the issue body and removing the metadata.