Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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.

1 participant