Fix database operations
This commit is contained in:
parent
16c5993faf
commit
2c9de875c8
@ -74,7 +74,7 @@ public class CheckinCommand implements CommandExecutor {
|
|||||||
ps.close();
|
ps.close();
|
||||||
} else {
|
} else {
|
||||||
ps = plugin.getConnection().prepareStatement(
|
ps = plugin.getConnection().prepareStatement(
|
||||||
"INSERT INTO checkins(uuid,last_checkin,streak,total_checkin) VALUES(?,?,?,?)");
|
"INSERT INTO checkins(last_checkin,streak,total_checkin,uuid) VALUES(?,?,?,?)");
|
||||||
ps.setLong(1, today.atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
ps.setLong(1, today.atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
||||||
ps.setInt(2, 1);
|
ps.setInt(2, 1);
|
||||||
ps.setInt(3, 1);
|
ps.setInt(3, 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user