-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): refine type handling in
transformerDate
and `transform…
…erJson` Refined the type checks and return values in both `transformerDate` and `transformerJson` to handle edge cases more effectively. This includes ensuring `null` and `undefined` are returned appropriately and that the types of inputs are strictly checked to prevent runtime errors. Added and adjusted tests to confirm the new behavior, ensuring consistency and reliability in data transformations within the database interaction layer.
- Loading branch information
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters