From 1407eac484453eb690f41a02a57a036ac0e746a0 Mon Sep 17 00:00:00 2001 From: Adi Bhagavath Date: Tue, 1 Oct 2024 10:31:09 +0530 Subject: [PATCH] Add VC in issueVC response Signed-off-by: Adi Bhagavath --- src/controller/credential_controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/credential_controller.ts b/src/controller/credential_controller.ts index 3b44e12..018adf2 100644 --- a/src/controller/credential_controller.ts +++ b/src/controller/credential_controller.ts @@ -91,7 +91,7 @@ export async function issueVC(req: express.Request, res: express.Response) { await dataSource.manager.save(cred); return res .status(200) - .json({ result: 'success', identifier: cred.identifier }); + .json({ result: 'success', identifier: cred.identifier, vc: vc }); } else { return res.status(400).json({ error: 'Credential not issued' }); }