perf: avoid perm checks from background jobs

This commit is contained in:
Ankush Menat 2023-06-28 20:15:29 +05:30
parent 9e1736e027
commit 86f453593a

View File

@ -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"],