Fix event reading from database

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2020-09-05 13:09:22 -07:00
parent e68e833e84
commit c22c7ef971

View file

@ -131,7 +131,7 @@ public class Event {
public static Event fromResultSet(ResultSet rs) throws SQLException { public static Event fromResultSet(ResultSet rs) throws SQLException {
return new Event( return new Event(
rs.getString(rs.findColumn("id")), rs.getString(rs.findColumn("id")),
rs.getString(rs.findColumn("name")), rs.getString(rs.findColumn("app_id")),
rs.getDate(rs.findColumn("date")), rs.getDate(rs.findColumn("date")),
Event.InteractionType.valueOf(rs.getString(rs.findColumn("type"))), Event.InteractionType.valueOf(rs.getString(rs.findColumn("type"))),
rs.getString(rs.findColumn("user_agent")), rs.getString(rs.findColumn("user_agent")),