fix handling of string slices

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-07-30 11:31:53 +02:00
parent 42ce83a8f3
commit 5a10561ca1
11 changed files with 67 additions and 22 deletions
@@ -36,7 +36,7 @@ func (pg *PgStore) GetRoutes(ctx context.Context, accountId string) ([]nmdata.Ro
for _, r := range routes {
route := nmdata.Route{}
err := networkmapdb.FromSqlTypesToSharedTypes(
reflect.ValueOf(&r).Elem(), reflect.ValueOf(&route).Elem())
reflect.ValueOf(&r), reflect.ValueOf(&route))
if err != nil {
return nil, err
}