Fixed problem with projectId definition in signals

This commit is contained in:
MauricioGarciaS 2022-11-21 18:02:52 +01:00
parent 9144606b08
commit fd0d57cd7b
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ class EventQueue():
def force_flush(self):
if not self.events.empty():
with pg_client.PostgreClient() as conn:
with pg_client.PostgresClient() as conn:
self.flush(conn)
def put(self, element):

View file

@ -438,7 +438,7 @@ def get_all_notes(projectId: int, data: schemas.SearchNoteSchema = Body(...),
@app.post('/{projectId}/signals', tags=['signals'])
def send_interactions(data: schemas_ee.SignalsSchema = Body(...),
def send_interactions(projectId:int, data: schemas_ee.SignalsSchema = Body(...),
context: schemas.CurrentContext = Depends(OR_context)):
data = signals.handle_frontend_signals(project_id=projectId, user_id=context.user_id, data=data)