diff --git a/src/app/modules/form/admin-form/admin-form.service.ts b/src/app/modules/form/admin-form/admin-form.service.ts index 9092f41567..eeec1a14c4 100644 --- a/src/app/modules/form/admin-form/admin-form.service.ts +++ b/src/app/modules/form/admin-form/admin-form.service.ts @@ -10,8 +10,6 @@ import mongoose, { ClientSession } from 'mongoose' import { err, errAsync, ok, okAsync, Result, ResultAsync } from 'neverthrow' import type { Except, Merge } from 'type-fest' -import { createPresignedPostDataPromise } from 'src/app/utils/aws-s3' - import { MAX_UPLOAD_FILE_SIZE, VALID_UPLOAD_FILE_TYPES, @@ -50,6 +48,7 @@ import getAgencyModel from '../../../models/agency.server.model' import getFormModel from '../../../models/form.server.model' import * as SmsService from '../../../services/sms/sms.service' import { twilioClientCache } from '../../../services/sms/sms.service' +import { createPresignedPostDataPromise } from '../../../utils/aws-s3' import { dotifyObject } from '../../../utils/dotify-object' import { isVerifiableMobileField } from '../../../utils/field-validation/field-validation.guards' import { diff --git a/src/app/modules/submission/encrypt-submission/encrypt-submission.service.ts b/src/app/modules/submission/encrypt-submission/encrypt-submission.service.ts index 3873016f46..1894deb712 100644 --- a/src/app/modules/submission/encrypt-submission/encrypt-submission.service.ts +++ b/src/app/modules/submission/encrypt-submission/encrypt-submission.service.ts @@ -6,8 +6,6 @@ import mongoose from 'mongoose' import { err, errAsync, ok, okAsync, Result, ResultAsync } from 'neverthrow' import { Transform } from 'stream' -import { createPresignedPostDataPromise } from 'src/app/utils/aws-s3' - import { FormResponseMode, StorageModeSubmissionMetadata, @@ -25,6 +23,7 @@ import { import { aws as AwsConfig } from '../../../config/config' import { createLoggerWithLabel } from '../../../config/logger' import { getEncryptSubmissionModel } from '../../../models/submission.server.model' +import { createPresignedPostDataPromise } from '../../../utils/aws-s3' import { isMalformedDate } from '../../../utils/date' import { getMongoErrorMessage } from '../../../utils/handle-mongo-error' import {