meta whatsapp chat
This commit is contained in:
parent
54f75387eb
commit
5ced0d0812
10 changed files with 1015 additions and 25 deletions
|
|
@ -629,7 +629,12 @@ def admin_list_whatsapp_messages(
|
|||
db: Session = Depends(get_db),
|
||||
_: str = Depends(current_admin),
|
||||
) -> list[dict]:
|
||||
query = select(WhatsAppMessage).order_by(WhatsAppMessage.created_at.desc()).limit(min(limit, 500))
|
||||
query = (
|
||||
select(WhatsAppMessage)
|
||||
.where(WhatsAppMessage.user_id.is_(None))
|
||||
.order_by(WhatsAppMessage.created_at.desc())
|
||||
.limit(min(limit, 500))
|
||||
)
|
||||
if peer:
|
||||
try:
|
||||
normalized_peer = normalize_wa_number(peer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue