...
The POC of this solution:
https://github.com/rbilabs/intl-whitelabel-app/pull/2422
intl-packages
We have a problem for return the additional hours of delivery mode, currently the back-end don’t return this, the repository intl-delivery-service use the intl-packages of restaurant packages, in the file packages/restaurant/src/rbi-restaurant/operating-hours.ts have the formatOperatingHours
function, and in this function have just normal hours, so we need to add additional hours in this function.
Before:
...
After:
...
I can’t validate this function in develop environment, and this is just an example for the solution.
Remember to create a new scenario in unit tests.