Skip to content

getCurrentEvent throws if no event is in range #46

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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