Update code to use column creatorId
instead of creator
This commit is contained in:
parent
08f113bb99
commit
1405aef0c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user