Skip to content

Commit

Permalink
chore: add in schema creation
Browse files Browse the repository at this point in the history
Signed-off-by: vikastc <[email protected]>
  • Loading branch information
Vikastc committed Mar 20, 2024
1 parent cf8b22c commit 516864c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/schema_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ export async function createSchema(

let newSchemaName = data.title + ':' + Cord.Utils.UUID.generate();
data.title = newSchemaName;
data.type = 'object';

let schemaDetails = Cord.Schema.buildFromProperties(
let schemaDetails = await Cord.Schema.buildFromProperties(
data,
CHAIN_SPACE_ID as `space:cord:${string}`,
issuerDid.uri
Expand Down

0 comments on commit 516864c

Please sign in to comment.