From a556149c7c323b85f14ef653208badab40c8f0e6 Mon Sep 17 00:00:00 2001 From: vidvidvid Date: Fri, 26 Jan 2024 11:25:46 +0100 Subject: [PATCH] fixed upload return hash --- package.json | 2 +- src/metadata/metadata.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 95d9610..b642337 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@quest-chains/sdk", "description": "An SDK for building applications on top of Quest Chains", - "version": "0.2.9", + "version": "0.2.10", "license": "GPL-3.0", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/metadata/metadata.ts b/src/metadata/metadata.ts index 77696eb..d2a8d72 100644 --- a/src/metadata/metadata.ts +++ b/src/metadata/metadata.ts @@ -71,7 +71,7 @@ export class MetadataUploader extends EventEmitter { try { const res = await axios.post(`${apiUrl ?? this.apiUrl}/upload/files`, formData, config); - return res.data.response; + return res.data.response['/']; } catch (error) { throw new Error(((error as AxiosError).response?.data as HttpResponse).error); }