codeths / kitcoin

https://kitcoin.app
GNU Affero General Public License v3.0
3 stars 2 forks source link

Fix user tokens #82

Closed asportnoy closed 2 years ago

asportnoy commented 2 years ago

This fixes the issue on the beta instance where users would not be created in the database. After checking logs, I found that the issue was due to the tokens property being required but no value defined for it. This PR makes that property optional and updates other functions to work with the optional value.

This PR is currently deployed to the beta instance and all users were properly synced with Google Admin. I still don't know why it only happened on beta though.