Skip to content

Commit a832b2b

Browse files
committed
[ADD] search uniqeid or linkedid
1 parent 1cac1a8 commit a832b2b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

routers/history_calls.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ async def calls_history_uniqueid(
2929
return await connector_database.get_cdr_uniqueid_or_linkedid(uniqueid)
3030

3131

32+
@router.get("/api/calls/hisroty/uniqueid_or_linkedid")
33+
async def calls_history_uniqueid_or_linkedid(
34+
req: Request,
35+
uniqueid: Id,
36+
):
37+
log.info("HISTORY UNIQUEID OR LINKEDID")
38+
39+
connector_database: PostgresqlStrategy | MysqlStrategy | SqliteStrategy = (
40+
req.app.state.connector_database
41+
)
42+
43+
return await connector_database.get_cdr_uniqueid_or_linkedid(uniqueid)
44+
45+
3246
@router.get("/api/calls/hisroty/")
3347
async def calls_history(req: Request, start_date: AwareDatetime, end_date: AwareDatetime):
3448
"""

0 commit comments

Comments
 (0)