Skip to content

Commit 4f7daeb

Browse files
committed
Change the model for failed posts
1 parent 8669596 commit 4f7daeb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/murfey/server/api/session_control.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,20 @@ def count_number_of_movies(db=murfey_db) -> Dict[str, int]:
206206

207207

208208
class PostInfo(BaseModel):
209-
url: str
209+
router_name: str
210+
function_name: str
210211
data: dict
212+
kwargs: dict
211213

212214

213215
@router.post("/instruments/{instrument_name}/failed_client_post")
214216
def failed_client_post(instrument_name: str, post_info: PostInfo):
215217
zocalo_message = {
216218
"register": "failed_client_post",
217-
"url": post_info.url,
218-
"json": post_info.data,
219+
"router_name": post_info.router_name,
220+
"function_name": post_info.function_name,
221+
"data": post_info.data,
222+
"kwargs": post_info.kwargs,
219223
}
220224
if _transport_object:
221225
_transport_object.send(_transport_object.feedback_queue, zocalo_message)

0 commit comments

Comments
 (0)