codemonument / deno_audio_logbook

A deno fresh server, with a telegram bot to receive audio messages and a website to show all messages of a user in a calendar
2 stars 0 forks source link

Handling date parsing errors #12

Closed bjesuiter closed 1 year ago

bjesuiter commented 1 year ago
          > I assume z.default() resets the value with the default, if the parsing failed ? Goal of my check was to catch random strings in the Dynamic route.

If yes good change! Approved

No, .default() will fill in the current month or year, when it's empty. When you put in an illegal date, you will currently be redirected to login page due to:

Bildschirm­foto 2023-03-15 um 22 09 57

_Originally posted by @bjesuiter in https://github.com/codemonument/deno_audio_logbook/issues/11#issuecomment-1470848562_