Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Feb 1, 2025
1 parent 7362045 commit 62f1ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/vp/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
const vc = decodeJWT(objectPath.get(verifiedAuthResponse, 'payload.vp.verifiableCredential.0'));
if (objectPath.has(doc, 'vc')) {
const vc_arr = objectPath.get(doc, 'vc');
vc_arr.push(vc);
vc_arr.push(vc.payload);
objectPath.set(doc, 'vc', vc_arr);
} else {
objectPath.set(doc, 'vc.0', vc);
Expand All @@ -55,7 +55,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
await gnap.insert(doc);
if (objectPath.has(patient_doc, 'vc')) {
const vc_arr1 = objectPath.get(patient_doc, 'vc');
vc_arr1.push(vc);
vc_arr1.push(vc.payload);
objectPath.set(patient_doc, 'vc', vc_arr1);
} else {
objectPath.set(patient_doc, 'vc.0', vc);
Expand Down

0 comments on commit 62f1ffb

Please sign in to comment.