Skip to content

Commit 61ccaab

Browse files
committed
add comment in file validator
1 parent 6127fc2 commit 61ccaab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lambdas/backend-api/src/templates/api/validate-letter-template-files.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ export class ValidateLetterTemplateFilesLambda {
7171

7272
const { error: getTemplateError, data: template } =
7373
await this.templateRepository.get(templateId, {
74+
/*
75+
Until migration to client-ownership is complete, we don't know whether the
76+
'owner' segment in the S3 path is a clientId or a userId. Once the migration
77+
is complete, we will know unambiguously that it's a clientId and this
78+
doubly attempted fetch won't be required
79+
*/
7480
userId: owner,
7581
clientId: owner,
7682
});

0 commit comments

Comments
 (0)