Skip to content

Commit f6653a3

Browse files
m-salaudeenchris-elliott-nhsd
authored andcommitted
CCM-10429: Templates and S3 migration
1 parent 21fb097 commit f6653a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data-migration/user-transfer/src/user-transfer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ async function migrateTemplatesAndS3Data(
8383

8484
for (const user of users) {
8585
for (const item of items) {
86-
const { id, templateType } = item;
87-
if (id.S === user.userId) {
86+
const { id, owner, templateType } = item;
87+
if (owner.S === user.userId) {
8888
// copy s3 data
8989
if (templateType.S === 'LETTER') {
9090
await handleS3Copy(user, id.S as string, DRY_RUN);

0 commit comments

Comments
 (0)