Skip to content

Commit

Permalink
Await the call that his the Maker API
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpetro committed Feb 11, 2024
1 parent d0bfe9c commit 3b7f45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irrigation-events/irrigation-events.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class IrrigationEventsController {
const deviceEventsList = irrigationEventsToDeviceEvents(irrigationEvents)
await this.addEventsOutsideTimeRange(deviceEventsList, startTimestamp, endTimestamp)
if (isCurrentTimeWithinInterval(startTimestamp, endTimestamp)) {
this.addCurrentDeviceStates(deviceEventsList)
await this.addCurrentDeviceStates(deviceEventsList)
}
return this.viewmodelTransformService.transform(deviceEventsList)
}
Expand Down

0 comments on commit 3b7f45b

Please sign in to comment.