Refactor createPrivilegedUser to accept PrivilegedUser object and adjust LoginController for consistency.

This commit is contained in:
2025-11-08 18:21:21 +01:00
parent 7315ea8455
commit 724b773be5
2 changed files with 9 additions and 8 deletions
@@ -103,8 +103,8 @@ public interface PrivilegedUserMapper {
@Insert("""
INSERT INTO privileged_users (uuid)
VALUES (#{uuid})
VALUES (#{user.uuid})
""")
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = int.class)
int createPrivilegedUser(UUID uuid);
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "user.id", before = false, resultType = int.class)
void createPrivilegedUser(@Param("user") PrivilegedUser user);
}