Print Comments not working in V12

I have used this code to print comment on sales order document but after upgrading it’s not being work

{% set communications = frappe.get_all(‘Communication’, filters={‘reference_doctype’: ‘Sales Order’, ‘reference_name’: doc.name, ‘comment_type’: ‘Comment’}, fields=[‘communication_date’, ‘sender_full_name’, ‘content’]) %}
{% for comm in communications %}

Customer Comment   {{ comm.content }}
{% endfor %}