fix first paginate method

This commit is contained in:
Kenneth Kehl
2024-10-18 12:23:51 -07:00
parent 2b1e83cef6
commit 567a16fb53
2 changed files with 9 additions and 12 deletions

View File

@@ -60,9 +60,14 @@ def get_most_recent_inbound_sms_for_service(service_id):
results = dao_get_paginated_most_recent_inbound_sms_by_user_number_for_service(
service_id, int(page), limit_days
)
return jsonify(
data=[row.serialize() for row in results.items], has_next=results.has_next
)
print(f"RESULTS {results}")
try:
x = jsonify(
data=[row.serialize() for row in results.items], has_next=results.has_next
)
except Exception as e:
raise e
return x
@inbound_sms.route("/summary")