fix events
This commit is contained in:
@@ -24,7 +24,7 @@ async def read_events(authorize: Annotated[bool, Depends(permissions_checker.Per
|
||||
if status is not None:
|
||||
object_search = {"status":{"$eq": status}}
|
||||
if id_event is not None:
|
||||
eventid = ObjectId(id_event)
|
||||
eventid = ObjectId(eventid)
|
||||
object_search = {"id": {"$regex": userid}}
|
||||
if status is not None:
|
||||
object_search = {"$and":[{"id":{"$regex": eventid}}, {"status":{"$eq":status}}]}
|
||||
|
Reference in New Issue
Block a user