SteamWar/SpigotCore
Archiviert
13
0

Update replay stuff

Dieser Commit ist enthalten in:
yoyosource 2022-04-09 21:31:58 +02:00
Ursprung dc9bb39644
Commit 1ebc8d9c06

Datei anzeigen

@ -148,7 +148,7 @@ public class SQLProvider implements Provider {
}); });
} }
private static final Statement getReplay = new Statement("SELECT Replay FROM Replay WHERE id = ?"); private static final Statement getReplay = new Statement("SELECT Replay FROM Replay WHERE FightID = ?");
@Override @Override
public void getReplay(int fightID, Consumer<InputStream> reader) { public void getReplay(int fightID, Consumer<InputStream> reader) {
getReplay.select(rs -> { getReplay.select(rs -> {
@ -158,7 +158,7 @@ public class SQLProvider implements Provider {
}, fightID); }, fightID);
} }
private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE id = ?"); private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE FightID = ?");
@Override @Override
public void setReplay(int fightID, InputStream data) { public void setReplay(int fightID, InputStream data) {
setReplay.update(data, fightID); setReplay.update(data, fightID);