mirror of
https://github.com/CarmJos/MoeTeleport.git
synced 2026-06-04 16:46:10 +08:00
delHome添加limit限定
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user