SteamWar/SpigotCore
Archiviert
13
0

Update replay stuff
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Dieser Commit ist enthalten in:
yoyosource 2022-04-04 18:18:46 +02:00
Ursprung 59102edf34
Commit dc9bb39644

Datei anzeigen

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