Skip to content

Commit 6231f02

Browse files
committed
Update to real id
1 parent 8f8d691 commit 6231f02

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

macrostrat_db_insertion/server.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ def process_user_feedback_input_request(request_data, session):
928928
async def record_run(
929929
request: Request,
930930
user_has_access: bool = Depends(has_access),
931-
user_id: str = "43",
931+
user_id: str = Depends(get_user_id),
932932
session: Session = Depends(get_session)
933933
):
934934
if not user_has_access:
@@ -953,12 +953,11 @@ async def record_run(
953953

954954
table_id = error_msg
955955

956-
success, internal_id = get_internal_user_id(user_id, session)
957-
958956
return JSONResponse(content={
959957
"success": "Successfully processed the run",
960-
"internal_id": str(internal_id),
961-
"table_id": str(table_id)
958+
"data": {
959+
"table_id": str(table_id)
960+
}
962961
})
963962

964963
@app.get("/health")

0 commit comments

Comments
 (0)