Falconerd / discord-bot-github

GitHub repo updates displayed in Discord.
381 stars 138 forks source link

Non-existing subscription error #77

Closed booleans-oss closed 3 years ago

booleans-oss commented 3 years ago

Fix #72

I just added a method that checks if a specific repoName is inside the subscriptions database.

booleans-oss commented 3 years ago

Hey thanks for the PR. There is a slight problem with this one which is repoName as a key should be repo. Objects in the collection are like this: image Cheers!

Oh, my bad. I forgot to check other queries beforehand. A schema would be useful in order to avoid these small mistakes.