Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

fix(server/account): missing transaction reason causing db errors#223

Merged
thelindat merged 1 commit intooverextended:mainfrom
andreutu:fix/transaction-message
Jan 21, 2025
Merged

fix(server/account): missing transaction reason causing db errors#223
thelindat merged 1 commit intooverextended:mainfrom
andreutu:fix/transaction-message

Conversation

@andreutu
Copy link
Contributor

Documentation states that the transaction (remove / add / transfer) message parameter is optional. However, this isn't always going to work, since, on transaction, a new row is added into accounts_transactions. If the message isn't specified in an OxAccount function, let's say, removeBalance it's going to spit out an error specifying so, because the SQL does not allow the said column to be NULL.

Hence, if the documentation is indeed correct and it's not required to specify a message (reason), then the proposed changes should apply the default withdrawal / deposit locales if message does not exist.

@thelindat thelindat merged commit fdc60d5 into overextended:main Jan 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants