commit | 86f453593a6aeb208741514b0cf9a66ab8f18a42 | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Wed Jun 28 20:15:29 2023 +0530 |
committer | Ankush Menat <ankush@frappe.io> | Wed Jun 28 20:15:29 2023 +0530 |
tree | 140f1ed39dbbf8b0dacfafe089573914d6071054 | |
parent | 9e1736e027cb679a639571f38daca55b10811035 [diff] |
perf: avoid perm checks from background jobs
diff --git a/erpnext/crm/doctype/social_media_post/social_media_post.py b/erpnext/crm/doctype/social_media_post/social_media_post.py index 55db29a..3654d29 100644 --- a/erpnext/crm/doctype/social_media_post/social_media_post.py +++ b/erpnext/crm/doctype/social_media_post/social_media_post.py
@@ -74,7 +74,7 @@ def process_scheduled_social_media_posts(): - posts = frappe.get_list( + posts = frappe.get_all( "Social Media Post", filters={"post_status": "Scheduled", "docstatus": 1}, fields=["name", "scheduled_time"],