Commit 7f7524d
authored
hotfix: restaurant today no data (#319)
1. When there's no data, don't 500 with a Zod parse error.
2. The error message should indicate that there is no data, not that the
restaurant ID is bad, because the restaurant ID enum schema already
checks that the ID is valid.1 parent d4f21c2 commit 7f7524d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
0 commit comments