From 86f453593a6aeb208741514b0cf9a66ab8f18a42 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 28 Jun 2023 20:15:29 +0530 Subject: [PATCH] perf: avoid perm checks from background jobs --- erpnext/crm/doctype/social_media_post/social_media_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 55db29a627..3654d29bdc 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 @@ class SocialMediaPost(Document): 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"],