1
mirror of https://github.com/CarmJos/MoeTeleport.git synced 2026-06-05 00:28:16 +08:00

delHome添加limit限定

This commit is contained in:
2022-02-25 05:46:56 +08:00
parent e81055e3f2
commit 90a1da8629
@@ -142,6 +142,7 @@ public class MySQLStorage implements DataStorage {
return getSQLManager().createDelete(DBTables.UserHomes.TABLE_NAME.get())
.addCondition("uuid", uuid)
.addCondition("name", homeName)
.setLimit(1)
.build().executeFunction((i) -> i > 0, false);
}