Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Jul 28, 2023
1 parent ccde779 commit 4ef0d6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/controllers/management-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ export class ManagementController {
...input,
},
})
.then((body) => jsonld.expand(body))
.then((body) => {
console.log(body)
return jsonld.expand(body)
})
.then((expanded) => Object.assign(new Catalog(), expanded[0]));
}

Expand Down
2 changes: 0 additions & 2 deletions src/entities/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export interface CatalogRequest {
querySpec?: QuerySpec;
}

export type CatalogRequestinput = Pick<CatalogRequest, "providerUrl">;

export class Catalog extends JsonLdId {
"https://www.w3.org/ns/dcat/dataset": Dataset[];

Expand Down
3 changes: 3 additions & 0 deletions tests/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ export async function createContractNegotiation(
.flatMap((it) => it.offers)
.find((offer) => offer.assetId === assetId)!;

console.log('offer:')
console.log(offer)

// Initiate contract negotiation on the consumer's side
const idResponse = await client.management.initiateContractNegotiation(
consumerContext,
Expand Down

0 comments on commit 4ef0d6f

Please sign in to comment.