fix delete_inbound_sms_older_than_retention and dao_get_inbound_sms_by_id

This commit is contained in:
Kenneth Kehl
2024-10-17 14:17:00 -07:00
parent 6f29a0e5a4
commit be56461587

View File

@@ -213,7 +213,7 @@ def dao_get_paginated_most_recent_inbound_sms_by_user_number_for_service(
offset = (page - 1) * current_app.config["PAGE_SIZE"]
limit = current_app.config["PAGE_SIZE"]
paginated_stmt = stmt.limit(limit).offset(offset)
result = db.session.execute(paginated_stmt).scalars().all()
result = db.session.execute(paginated_stmt).all()
print(f"RESULT {result}")
total_count_stmt = (
select(func.count())