The-CJ / Phaazebot

Phaazebot: Twitch, Discord, Osu, Twitter... Everything in one place
MIT License
0 stars 0 forks source link

API should Only response with success if one entry is deleted #124

Closed The-CJ closed 4 years ago

The-CJ commented 4 years ago

# e.g.:
deleted:int = cls.Web.BASE.PhaazeDB.deleteQuery(DELETE FROM `X` WHERE `A`)
if deleted >= 1: return deleteSuccessfull()
else: raise Error()
The-CJ commented 4 years ago

Gets solved another way we select stuff first and if not found throw errors

The-CJ commented 4 years ago

Jet another way: Select Entry to delete first, throw error when not found

The-CJ commented 4 years ago

Added in last merge of config spit #127