y9san9 / prizebot

Open source telegram bot to purely raffle prizes (giveaways) with random.org written in Kotlin
https://t.me/y9prizebot
MIT License
72 stars 14 forks source link

Delete old titles from UserTitleStorage #91

Closed y9san9 closed 3 years ago

y9san9 commented 3 years ago

In case a user changes the name when there is already it's name in the table, it doesn't changes in the bot.

https://github.com/y9san9/prizebot/blob/5f50ac6c067b790b2827289478d5e786d512e5dc/bot/src/main/kotlin/me/y9san9/prizebot/database/user_titles_storage/TableUserTitlesStorage.kt#L24-L29

I should add deleteWhere there.