template
This commit is contained in:
parent
9f03e5df32
commit
33b6b5d26f
4 changed files with 159 additions and 50 deletions
|
|
@ -303,11 +303,12 @@ async def whatsapp_account_refresh(
|
|||
@router.get("/accounts/{account_id}/messages")
|
||||
def whatsapp_account_messages(
|
||||
account_id: str,
|
||||
limit: int = Query(default=300, ge=1, le=500),
|
||||
limit: int = Query(default=500, ge=1, le=500),
|
||||
q: str = Query(default="", max_length=80),
|
||||
db: Session = Depends(get_db),
|
||||
user: UserAccount = Depends(current_user),
|
||||
) -> list[dict]:
|
||||
return list_account_messages(db, user, account_id, limit)
|
||||
return list_account_messages(db, user, account_id, limit, q)
|
||||
|
||||
|
||||
@router.post("/accounts/{account_id}/delivery")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue