Skip to content

getCurrentEvent throws if no event is in range #46

@eiabea

Description

@eiabea
12:08:04.203Z ERROR tempea: Error getting temperatures
    TypeError: Cannot read property 'tz' of undefined
        at Object.getCurrentEvent (/src/controller/calendar/nextcloud.js:76:46)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  • getCurrentEvent should be surrounded by try/catch
  • start and end from the event should be checked if present

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions