mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
If the notifications that are being deleted are letters then we need to delete the letter from s3 as well.
This commit is contained in:
@@ -8,7 +8,6 @@ from notifications_utils.s3 import s3upload
|
||||
|
||||
from app.models import KEY_TYPE_TEST
|
||||
from app.utils import convert_utc_to_bst
|
||||
from app.variables import Retention
|
||||
|
||||
|
||||
class ScanErrorType(Enum):
|
||||
@@ -83,8 +82,7 @@ def upload_letter_pdf(notification, pdf_data, precompiled=False):
|
||||
filedata=pdf_data,
|
||||
region=current_app.config['AWS_REGION'],
|
||||
bucket_name=bucket_name,
|
||||
file_location=upload_file_name,
|
||||
tags={Retention.KEY: Retention.ONE_WEEK}
|
||||
file_location=upload_file_name
|
||||
)
|
||||
|
||||
current_app.logger.info("Uploaded letters PDF {} to {} for notification id {}".format(
|
||||
|
||||
Reference in New Issue
Block a user