File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
46
46
const vc = decodeJWT ( objectPath . get ( verifiedAuthResponse , 'payload.vp.verifiableCredential.0' ) ) ;
47
47
if ( objectPath . has ( doc , 'vc' ) ) {
48
48
const vc_arr = objectPath . get ( doc , 'vc' ) ;
49
- vc_arr . push ( vc ) ;
49
+ vc_arr . push ( vc . payload ) ;
50
50
objectPath . set ( doc , 'vc' , vc_arr ) ;
51
51
} else {
52
52
objectPath . set ( doc , 'vc.0' , vc ) ;
@@ -55,7 +55,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
55
55
await gnap . insert ( doc ) ;
56
56
if ( objectPath . has ( patient_doc , 'vc' ) ) {
57
57
const vc_arr1 = objectPath . get ( patient_doc , 'vc' ) ;
58
- vc_arr1 . push ( vc ) ;
58
+ vc_arr1 . push ( vc . payload ) ;
59
59
objectPath . set ( patient_doc , 'vc' , vc_arr1 ) ;
60
60
} else {
61
61
objectPath . set ( patient_doc , 'vc.0' , vc ) ;
You can’t perform that action at this time.
0 commit comments