We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-1を指定された時の対処を考えていなかった。 Bad requestを返す形にする。
-1
Bad request
The text was updated successfully, but these errors were encountered:
この問題は #30 と競合していた。 status: 1 && room_id: -1を満たすExamは 正しく機能していれば 存在しないため、Couldn't find...メッセージを返すようになっているはず。
status: 1 && room_id: -1
Couldn't find...
$ curl https://smat-api-dev.herokuapp.com/v1/rooms/-1/questions | jq { "message": "Couldn't find Exam with [WHERE \"exams\".\"status\" = $1 AND \"exams\".\"room_id\" = $2]" }
ただ、ActiveRecord::RecordNotFoundが返るまでには全探索に近いことをするため、やはり制限は設けるべき。
ActiveRecord::RecordNotFound
Sorry, something went wrong.
No branches or pull requests
-1
を指定された時の対処を考えていなかった。Bad request
を返す形にする。The text was updated successfully, but these errors were encountered: