fixed uploader

This commit is contained in:
Robert 2024-03-03 18:33:52 +07:00
parent 88e6f8be48
commit ad8c293af1
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -20,7 +20,7 @@ class FileUploaderService:
async def upload_from_chain(self, chain: Chain):
files_to_upload = list()
for action in chain.actions:
for action in filter(lambda a: a.action_type == "comment", chain.actions):
file_urls_to_upload = [*files_to_upload, *action.file_urls]
for file_url in file_urls_to_upload: