mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +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():
|
def process_scheduled_social_media_posts():
|
||||||
posts = frappe.get_list(
|
posts = frappe.get_all(
|
||||||
"Social Media Post",
|
"Social Media Post",
|
||||||
filters={"post_status": "Scheduled", "docstatus": 1},
|
filters={"post_status": "Scheduled", "docstatus": 1},
|
||||||
fields=["name", "scheduled_time"],
|
fields=["name", "scheduled_time"],
|
||||||
|
|||||||
Reference in New Issue
Block a user