Skip to content

Commit

Permalink
fix: response of issueVC change
Browse files Browse the repository at this point in the history
Signed-off-by: vikastc <[email protected]>
  • Loading branch information
Vikastc committed Mar 23, 2024
1 parent 35b50a3 commit 366ea28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/controller/credential_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ export async function documentHashOnChain(

return res.status(200).json({ result: statement1 });
} catch (error) {
console.log('errr: ', error);
return res.status(400).json({ err: error });
}
}
2 changes: 1 addition & 1 deletion src/controller/schema_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function createSchema(
await getConnection().manager.save(schemaData);
return res.status(200).json({
result: 'SUCCESS',
identifier: schemaData.identifier,
schemaId: schemaData.identifier,
});
}
return res.status(400).json({ error: 'SchemaDetails not created' });
Expand Down

0 comments on commit 366ea28

Please sign in to comment.