mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
fix: add comments, remove whitespace
This commit is contained in:
parent
01455f599b
commit
a2fdc0feed
1 changed files with 2 additions and 5 deletions
|
|
@ -383,10 +383,6 @@ public partial class CS2_SimpleAdmin
|
||||||
new { address, hostname });
|
new { address, hostname });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(int? serverId, string? groupIds) = await connection.QueryFirstAsync<(int?, string?)>(
|
(int? serverId, string? groupIds) = await connection.QueryFirstAsync<(int?, string?)>(
|
||||||
"SELECT `id`, `group_ids` FROM `sa_servers` WHERE `address` = @address",
|
"SELECT `id`, `group_ids` FROM `sa_servers` WHERE `address` = @address",
|
||||||
new { address });
|
new { address });
|
||||||
|
|
@ -394,6 +390,7 @@ public partial class CS2_SimpleAdmin
|
||||||
ServerId = serverId;
|
ServerId = serverId;
|
||||||
if (groupIds != null && groupIds.Length > 0)
|
if (groupIds != null && groupIds.Length > 0)
|
||||||
{
|
{
|
||||||
|
// Split the group ids by comma and parse them to integers
|
||||||
GroupIds = groupIds?.Split(',').Select(int.Parse).ToArray();
|
GroupIds = groupIds?.Split(',').Select(int.Parse).ToArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue