You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minor bug in Update and Delete API Created. The bug I faced is that when we execute the API's like update and delete in Postman Software for the query 'DELETE FROM ' . $this->table . ' WHERE id = :id' when the "id" is not in the Database still the Query executes and does not throw any error.
So, i wrote a Check() function in Post.php which will check if any entry with following "id" is present or not and will throw an error accordingly.
I will be contributing tomorrow.
The text was updated successfully, but these errors were encountered:
Minor bug in Update and Delete API Created. The bug I faced is that when we execute the API's like update and delete in Postman Software for the query 'DELETE FROM ' . $this->table . ' WHERE id = :id' when the "id" is not in the Database still the Query executes and does not throw any error.
So, i wrote a Check() function in Post.php which will check if any entry with following "id" is present or not and will throw an error accordingly.
I will be contributing tomorrow.
The text was updated successfully, but these errors were encountered: