We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f412317 commit 4942a22Copy full SHA for 4942a22
src/services/post-tag.service.ts
@@ -23,7 +23,7 @@ export class PostTagService {
23
url,
24
method,
25
body,
26
- } = await got.get<PostTag[]>(`${globalContext.config.apiBaseUrl}/api/tags/list`);
+ } = await got.get<PostTag[]>(`${globalContext.config.apiBaseUrl}/api/tags/list`, { responseType: 'json' });
27
if (!isOk) throw Error(`Failed to ${method} ${url}`);
28
29
return Array.isArray(body)
0 commit comments