Skip to content

Commit

Permalink
fixed upload return hash
Browse files Browse the repository at this point in the history
  • Loading branch information
vidvidvid committed Jan 26, 2024
1 parent 2ef39ed commit a556149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/metadata/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a556149

Please sign in to comment.