fix api test error

This commit is contained in:
root
2026-06-11 23:26:35 -04:00
parent af5b7fda7e
commit 44f59423ec
2 changed files with 5 additions and 3 deletions
@@ -58,7 +58,7 @@ router.post('/validate', async (req, res, next) => {
expiration_date: result.expiration_date,
message: result.message,
next_reminder: result.days_remaining
? new Date(Date.now() + (result.days_remaining - 30) * 86400000).toISOString().split('T')[0]
? new Date(Date.now() + (result.days_remaining - 30) * 86400000).toISOString().split('T')[0] ?? null
: null,
})
} catch (err) {