SteamWar/SpigotCore
Archiviert
13
0

Update replay stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-04-09 21:33:57 +02:00
Ursprung 4c42797ff3
Commit 0a606c8249

Datei anzeigen

@ -158,10 +158,10 @@ public class SQLProvider implements Provider {
}, fightID); }, fightID);
} }
private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE FightID = ?"); private static final Statement setReplay = new Statement("INSERT INTO Replay (FightID, Replay) SET FightID = ?, Replay = ?");
@Override @Override
public void setReplay(int fightID, InputStream data) { public void setReplay(int fightID, InputStream data) {
setReplay.update(data, fightID); setReplay.update(fightID, data);
} }
private static final Statement create = new Statement("INSERT INTO FightPlayer (FightID, UserID, Team, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?, ?)"); private static final Statement create = new Statement("INSERT INTO FightPlayer (FightID, UserID, Team, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?, ?)");