mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 20:36:16 +02:00
fixed copilot get
This commit is contained in:
@@ -76,7 +76,7 @@ async def api_copilot_retrieve(copilot_id):
|
|||||||
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
||||||
|
|
||||||
return (
|
return (
|
||||||
jsonify({copilot._asdict()}),
|
jsonify(copilot._asdict()),
|
||||||
HTTPStatus.OK,
|
HTTPStatus.OK,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -101,5 +101,6 @@ async def api_copilot_ws_relay(copilot_id, comment, data):
|
|||||||
if not copilot:
|
if not copilot:
|
||||||
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
||||||
await updater(data, comment, copilot_id)
|
await updater(data, comment, copilot_id)
|
||||||
|
print("updated")
|
||||||
return "", HTTPStatus.OK
|
return "", HTTPStatus.OK
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user