mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-05 17:46:37 +08:00
fix(backend): include interfaceName in ListNodes API response (#395)
- Add missing interfaceName field to node list API response map - Fixes bug where interface name value disappears after page refresh - Field is correctly saved to DB but was not returned in API response Co-authored-by: Alex-WU-Gen-9-png <github@enomria0785.eu.org>
This commit is contained in:
@@ -683,6 +683,7 @@ func (r *Repository) ListNodes() ([]map[string]interface{}, error) {
|
|||||||
"remoteToken": nullableString(n.RemoteToken),
|
"remoteToken": nullableString(n.RemoteToken),
|
||||||
"remoteConfig": nullableString(n.RemoteConfig),
|
"remoteConfig": nullableString(n.RemoteConfig),
|
||||||
"expiryReminderDismissed": n.ExpiryReminderDismissed,
|
"expiryReminderDismissed": n.ExpiryReminderDismissed,
|
||||||
|
"interfaceName": nullableString(n.InterfaceName),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return items, nil
|
return items, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user