1
mirror of https://github.com/CarmJos/MoeTeleport.git synced 2024-09-19 21:35:56 +00:00

delHome添加limit限定

This commit is contained in:
Carm Jos 2022-02-25 05:46:56 +08:00
parent e81055e3f2
commit 90a1da8629

View File

@ -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);
}