Fix: refresh the document after placing files, before the post-consume script

This commit is contained in:
Trenton H committed 2026-11-04 20:11:02 -08:00
1 parent c322a3fe31
commit eb1a1fbf44
1 file changed
+1 -3
+1 -3
View File
@@ -813,6 +813,7 @@ class ConsumerPlugin(
# The storage scope above nests under the consume task's scope, so its
# moves are still pending; place the file before the script reads its path.
flush_pending_file_moves()
document.refresh_from_db()
self.run_post_consume_script(document)
@@ -826,9 +827,6 @@ class ConsumerPlugin(
document.id,
)
# Return the most up to date fields
document.refresh_from_db()
return ConsumeFileSuccessResult(document_id=document.pk)
def _parse_title_placeholders(self, title: str) -> str: