From 1405aef0c32bf44dbce9e9eeda7caf66afeb68a6 Mon Sep 17 00:00:00 2001 From: Keir Nellyer Date: Sun, 30 Oct 2016 01:16:40 +0000 Subject: [PATCH] Update code to use column `creatorId` instead of `creator` --- .../src/mineplex/core/chatsnap/SnapshotRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/chatsnap/SnapshotRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/chatsnap/SnapshotRepository.java index f239ff55c..1ee5e0daa 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/chatsnap/SnapshotRepository.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/chatsnap/SnapshotRepository.java @@ -70,7 +70,7 @@ public class SnapshotRepository private static final String INSERT_MESSAGE_RECIPIENT = "INSERT INTO snapshotRecipients (messageId, recipientId) VALUES (?, ?);"; private static final String INSERT_MESSAGE_MAPPING = "INSERT INTO snapshotMessageMap (snapshotId, messageId) VALUES (?, ?);"; private static final String GET_ID_FROM_TOKEN = "SELECT snapshots.id FROM snapshots WHERE snapshots.token = ?;"; - private static final String GET_METADATA = "SELECT token, creator FROM snapshots WHERE id = ?;"; + private static final String GET_METADATA = "SELECT token, creatorId FROM snapshots WHERE id = ?;"; private static final String SET_TOKEN = "UPDATE snapshots SET token = ? WHERE id = ?;"; private final String _serverName; @@ -182,7 +182,7 @@ public class SnapshotRepository setToken(connection, snapshotId, token); } - Integer creatorId = resultSet.getInt("creator"); + Integer creatorId = resultSet.getInt("creatorId"); if (resultSet.wasNull()) creatorId = null; return new SnapshotMetadata(snapshotId, token, creatorId);