Commit 7624023f by Oleksandr Barabash

data changed to members in v1_mars_report response

parent 652977fb
...@@ -337,7 +337,7 @@ async def v1_mars_report(request: Request) -> Response: ...@@ -337,7 +337,7 @@ async def v1_mars_report(request: Request) -> Response:
report = MarsReport.load(request_json, unknown=EXCLUDE) report = MarsReport.load(request_json, unknown=EXCLUDE)
emails = await BOT.handle_mars_report(channel_id, report) emails = await BOT.handle_mars_report(channel_id, report)
Log.d(TAG, f"v1_mars_report::notification: '{emails}'") Log.d(TAG, f"v1_mars_report::notification: '{emails}'")
data = {"data": emails} data = {"members": emails}
return make_response(200, "OK", data) return make_response(200, "OK", data)
except Exception: except Exception:
Log.e(TAG, "v1_mars_report::error", exc_info=sys.exc_info()) Log.e(TAG, "v1_mars_report::error", exc_info=sys.exc_info())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment