fix(budget): fix category update failing with SQLite binding error
The `date` import from validate.js shadowed the `date` field from req.body, so SQLite received a function reference instead of a string when updating a budget entry - causing a TypeError. Fix by aliasing the import to `validateDate` and adding `date` to the req.body destructuring. Closes #8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.6.0] - 2026-04-03
|
||||
|
||||
### Fixed
|
||||
- Fix budget entry update failing with "Internal Error" when changing category - `date` validator import shadowed the `date` field from the request body, causing SQLite to receive a function reference instead of a string value (fixes #8)
|
||||
|
||||
## [0.5.9] - 2026-04-03
|
||||
|
||||
### Security
|
||||
|
||||
Reference in New Issue
Block a user