coding-buddies-discord / cb-bots

4 stars 3 forks source link

DB don't saves data #30

Closed cubiquitous closed 2 years ago

cubiquitous commented 2 years ago

According to @doulovera heroku deletes files after 24h. Due to that the points are being deleted. therefore we need to use a different way of saving the data that is not a local db stored on heroku

waream2 commented 2 years ago

@Claudi0-V ahh yeah, thats very stupid. Seems like we may need to move over to a more persistence data option. Any suggestions on a solution. I think we'd want to stay noSQL because that's our current data structure.

waream2 commented 2 years ago

https://www.npmjs.com/package/@sadorlovsky/lowdb-s3

this looks interesting. We can just hook into lowdb and S3.

cubiquitous commented 2 years ago

i have no knowledge regarding S3, so i'll let this one for you and the others

cubiquitous commented 2 years ago

31 fixed this problem