Skip to content

Commit cf0b2a7

Browse files
committed
CCM-10429: Templates and S3 migration
1 parent 693c56a commit cf0b2a7

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)