Skip to content

Commit

Permalink
fix schema issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Aug 20, 2024
1 parent 2c0c958 commit 415b749
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/schema/services/schema.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ export class SchemaService {
schemaId: signedSchema.id,
appId: appDetail.appId,
authorDid: author,
transactionHash: registeredSchema['transactionHash']
? registeredSchema['transactionHash']
transactionHash: registeredSchema?.transactionHash
? registeredSchema.transactionHash
: '',
});
Logger.log('create() method: ends', 'SchemaService');

return {
schemaId: signedSchema.id,
transactionHash: registeredSchema['transactionHash']
? registeredSchema['transactionHash']
transactionHash: registeredSchema?.transactionHash
? registeredSchema.transactionHash
: '',
};
} catch (error) {
Expand Down Expand Up @@ -284,7 +284,7 @@ export class SchemaService {

return {
transactionHash: registeredSchema?.transactionHash
? registeredSchema?.transactionHash
? registeredSchema.transactionHash
: '',
};
}
Expand Down

0 comments on commit 415b749

Please sign in to comment.