Skip to content

Commit

Permalink
fix(oob): set oob alias in migration and update snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Koci <[email protected]>
  • Loading branch information
jakubkoci committed Oct 8, 2022
1 parent f2ccba2 commit 7687634
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"theirLabel": "Agent: PopulateWallet2",
"state": "complete",
"role": "invitee",
"alias": "connection alias",
"invitation": {
"@type": "https://didcomm.org/connections/1.0/invitation",
"@id": "d56fd7af-852e-458e-b750-7a4f4e53d6e6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ Object {
"z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM",
],
},
"alias": "connection alias",
"autoAcceptConnection": undefined,
"createdAt": "2022-04-30T13:02:21.577Z",
"id": "1-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -850,6 +851,7 @@ Object {
"z6MktCZAQNGvWb4WHAjwBqPtXhZdDYorbSJkGW9vj1uhw1HD",
],
},
"alias": undefined,
"autoAcceptConnection": undefined,
"createdAt": "2022-04-30T13:02:21.608Z",
"id": "2-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -913,6 +915,7 @@ Object {
"z6Mkt1tsp15cnDD7wBCFgehiR2SxHX1aPxt4sueE24twH9Bd",
],
},
"alias": undefined,
"autoAcceptConnection": false,
"createdAt": "2022-04-30T13:02:21.628Z",
"id": "3-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -976,6 +979,7 @@ Object {
"z6Mkmod8vp2nURVktVC5ceQeyr2VUz26iu2ZANLNVg9pMawa",
],
},
"alias": undefined,
"autoAcceptConnection": undefined,
"createdAt": "2022-04-30T13:02:21.635Z",
"id": "4-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -1039,6 +1043,7 @@ Object {
"z6MkjDJL4X7YGoH6gjamhZR2NzowPZqtJfX5kPuNuWiVdjMr",
],
},
"alias": undefined,
"autoAcceptConnection": false,
"createdAt": "2022-04-30T13:02:21.641Z",
"id": "5-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -1097,6 +1102,7 @@ Object {
},
"type": "OutOfBandRecord",
"value": Object {
"alias": undefined,
"autoAcceptConnection": true,
"createdAt": "2022-04-30T13:02:21.646Z",
"id": "6-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -1160,6 +1166,7 @@ Object {
"z6MkuWTEmH1mUo6W96zSWyH612hFHowRzNEscPYBL2CCMyC2",
],
},
"alias": undefined,
"autoAcceptConnection": true,
"createdAt": "2022-04-30T13:02:21.653Z",
"id": "7-4e4f-41d9-94c4-f49351b811f1",
Expand Down Expand Up @@ -1254,6 +1261,7 @@ Object {
},
"type": "ConnectionRecord",
"value": Object {
"alias": "connection alias",
"createdAt": "2022-04-30T13:02:21.577Z",
"did": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ",
"id": "8f4908ee-15ad-4058-9106-eda26eae735c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export async function migrateToOobRecord(
oobRecord = new OutOfBandRecord({
role: oobRole,
state: oobState,
alias: connectionRecord.alias,
autoAcceptConnection: connectionRecord.autoAcceptConnection,
outOfBandInvitation,
reusable: oldMultiUseInvitation,
Expand Down

0 comments on commit 7687634

Please sign in to comment.