fix delete_inbound_sms_older_than_retention and dao_get_inbound_sms_by_id

This commit is contained in:
Kenneth Kehl
2024-10-17 13:39:05 -07:00
parent 80d05532e7
commit cfce20fb46

View File

@@ -134,7 +134,7 @@ def delete_inbound_sms_older_than_retention():
.join(ServiceDataRetention.service)
.filter(ServiceDataRetention.notification_type == NotificationType.SMS)
)
flexible_data_retention = db.session.execute(stmt).all()
flexible_data_retention = db.session.execute(stmt).scalars().all()
deleted = 0