...
Because these are the errors ever are same thing, not has a treatment for the other flows.
Technical Solution
intl-delivery-service
In the file src/modules/restaurant/restaurant.service.ts have a function called findEligible
and in these functions have another function deriveEligibility
and in this function return errors of restaurant and return the next time that the restaurant open again, but now don’t use this, so we need to add this information.
...
Just add nextOpenDate
in lines 174 and 175.
And the returned this function need to change too, because need pass the parameter nextOpenDate
and adjusted of logic to return the data in case of eligible
equals the false:
...
After this in the file src/modules/quote/quote.service.ts in retrieveFirstQuote
function we can get these informations in the getEligibleDeliveryRestaurantData
function, because now return the errors and the nextOpenDate.