Skip to content

Conversation

@ShootingStar91
Copy link
Contributor

…sed issue on debug log of oldValue, and could possibly cause issues in future.

Not 100% sure of how good the solution is, so keep an eye on it.

@ShootingStar91
Copy link
Contributor Author

The bug was:

If species had an existing value of body mass (not null), and it was changed, the DatabaseHandler.select was used by WriteHandler to fetch the old values for logging purposes - it returned a BigInt from MariaDB instead of number. This wasn't a problem otherwise, but there was a debug log that JSON-stringified the values, causing a bug because JSON.stringify can't handle bigints.

I previously thought bigint was a prisma issue but apparently it's more mariadb specific.

Copy link
Collaborator

@EeroAnt EeroAnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me

…sed issue on debug log of oldValue, and could possibly cause issues in future.

Not 100% sure of how good the solution is, so keep an eye on it.
@iritmaximus iritmaximus merged commit 853ca70 into main Sep 11, 2024
@iritmaximus iritmaximus deleted the writeFix branch September 11, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants