Commit dc8d3f39 authored by Fjen Undso's avatar Fjen Undso
Browse files

SessionController: return empty sessionlist instead of 404

parent 64348fe6
......@@ -34,8 +34,7 @@ public class SessionController extends Controller {
*/
public static Result getSessionsByOwner(String owner) {
List<Session> sessions = Session.findFromOwner(owner);
return sessions.isEmpty() ? notFound("no sessions") : ok(Json
.toJson(sessions)); //200 or 404
return ok(Json.toJson(sessions)); //200
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment