File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2020from app .dao .template_email_files_dao import (
2121 dao_archive_template_email_file ,
2222 dao_get_template_email_file_by_id ,
23+ dao_get_template_email_files_by_template_id ,
2324)
2425from app .dao .template_folder_dao import (
2526 dao_get_template_folder_by_id_and_service_id ,
@@ -161,7 +162,7 @@ def update_template(service_id, template_id): # noqa: C901
161162
162163 dao_update_template (update_dict )
163164 if update_dict .archived :
164- file_ids_to_archive = [file .id for file in update_dict . email_files ]
165+ file_ids_to_archive = [file .id for file in dao_get_template_email_files_by_template_id ( template_id ) ]
165166 else :
166167 file_ids_to_archive = data .get ("archive_email_file_ids" )
167168 if file_ids_to_archive :
You can’t perform that action at this time.
0 commit comments