perf: avoid perm checks from background jobs
This commit is contained in:
parent
9e1736e027
commit
86f453593a
@ -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"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user