Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently, the system check if the restaurant is open, but this verification is bad, because only validate if it is open, case restaurant is open show information and set the restaurant to make orders, but in case of restaurant closed, so don’t send information for system and the show wrong message.

Technical Problem

intl-whitelabel-app

The front-end get this information in this file: src/components/address-modal/index.tsx

...

Use this query of GraphQl:

...

intl-whitelabel-graphql

On repository of intl-whitelabel-graphql has this query:

...

This service is from repository intl-delivery-service.

intl-delivery-service

In the file src/modules/quote/quote.service.ts. We have the retrieveFirstQuote function.

...

In this function the code have other called, the getWinningQuote:

...

And this Function call other function getQuotes, and this function return correct errors, inform that restaurant has errors, and the error is “The restaurant is closed”.

...

But after this the code ignore this error and give an error forced, in return in case errors in retrieveFirstQuote is:

...

Because these are the errors ever are same thing, not has a treatment for the other flows.