-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not attempt to update calendar for properties not previously synced.
It is common for the calendar endpoint of supplier APIs to be different from that to get property data. Therefore, it is possible for APIs to return the availabilities calendar of properties that were not previously synchronised. Since this is a possible scenarion across different suppliers, this changes the `Workers::CalendarSynchronisation` class to skip updating the calendar (that is, making an API call to Roomorama) in case the property identifier is unknown. In case the property is indeed created by Concierge on a later run of the `metadata` worker, then the next `calendar` worker run should update its calendar as usual.
- Loading branch information
Renato Mascarenhas
committed
Aug 11, 2016
1 parent
8c1497d
commit bbaa974
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters