From 04c8a7fedace273e4217583a595290422a1c2f32 Mon Sep 17 00:00:00 2001 From: ssallam Date: Tue, 4 Dec 2018 21:21:13 +0100 Subject: [PATCH] Fix aquarius url and the keeper registered url type. --- src/aquarius/Aquarius.ts | 2 +- src/ocean/Ocean.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aquarius/Aquarius.ts b/src/aquarius/Aquarius.ts index 2e6a14c..c6c24c0 100644 --- a/src/aquarius/Aquarius.ts +++ b/src/aquarius/Aquarius.ts @@ -137,6 +137,6 @@ export default class Aquarius { } public getServiceEndpoint(did) { - return `${this.url}/api/v1/provider/assets/metadata/${did}` + return `${this.url}/api/v1/aquarius/assets/metadata/${did}` } } diff --git a/src/ocean/Ocean.ts b/src/ocean/Ocean.ts index b577503..fcd2ce4 100644 --- a/src/ocean/Ocean.ts +++ b/src/ocean/Ocean.ts @@ -149,7 +149,7 @@ export default class Ocean { await didRegistry.registerAttribute( assetId, - ValueType.DID, + ValueType.URL, "Metadata", serviceEndpoint, publisher.getId())