mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-25 01:28:29 +00:00
perf: avoid perm checks from background jobs
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user