Versions Compared

Key

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

...

After a conversation with Pawel, we discovered that we can control this through Sanity, where we can add these rules to the restaurant document within Sanity and retrieve/modify this file in other services such as DOP.

Detailed solutions

1.ctg-fz-portal

#We Prefer this Solution

After a conversation with Pawel and Francisco, we resolved to create the Sanity-client Lib into the DOP service, this way is simpler and resolve our problem. Only DOP there are access to change this information, so we don’t have problems in this are into only DOP.

...

  • Create a query to add new data of cash limitation in the sanity through DOP

  • Add new data of rules of Cash Limitation in restaurant interface;

  • Add this rules of cash limitation in the DOP service;

  • Import the sanity-client in DOP

2.Intl-packages

#We Prefer this Solution

To do this, we simply need to add the data control logic in intl-packages/package/sanity and import this package into DOP. This allows us to centralize restaurant information in just one place (Sanity), making the implementation simpler.

...