Use peers and groups map for peers validation

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2025-01-15 12:50:25 +03:00
parent 6367fe4f74
commit 4afaabb33c
4 changed files with 11 additions and 11 deletions

View File

@@ -221,7 +221,7 @@ func generateAccountSQLTypes(account *types.Account) {
for id, peer := range account.Peers {
peer.ID = id
account.PeersG = append(account.PeersG, peer)
account.PeersG = append(account.PeersG, *peer)
}
for id, user := range account.Users {
@@ -235,7 +235,7 @@ func generateAccountSQLTypes(account *types.Account) {
for id, group := range account.Groups {
group.ID = id
account.GroupsG = append(account.GroupsG, group)
account.GroupsG = append(account.GroupsG, *group)
}
for id, route := range account.Routes {