Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Bug in Update and Delete Api #6

Open
rm210 opened this issue Aug 28, 2019 · 0 comments
Open

Minor Bug in Update and Delete Api #6

rm210 opened this issue Aug 28, 2019 · 0 comments

Comments

@rm210
Copy link

rm210 commented Aug 28, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant