mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-09 11:41:56 -07:00
Fix set_alias 404 check: simplify to match generic updateDeviceColumn pattern
Agent-Logs-Url: https://github.com/netalertx/NetAlertX/sessions/661c66ce-45e8-4f96-b51d-1bb0b918c669 Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
da8b694a49
commit
e3a4c62d5f
@@ -586,7 +586,7 @@ def api_device_set_alias(mac, payload=None):
|
||||
device_handler = DeviceInstance()
|
||||
result = device_handler.updateDeviceColumn(mac, 'devName', alias)
|
||||
|
||||
if not result.get("success") and result.get("error") == "Device not found":
|
||||
if not result.get("success"):
|
||||
return jsonify(result), 404
|
||||
|
||||
return jsonify(result)
|
||||
|
||||
Reference in New Issue
Block a user