diff --git a/api/services/appstore/[query].ts b/api/services/appstore/[query].ts index 474fe53..44f184b 100644 --- a/api/services/appstore/[query].ts +++ b/api/services/appstore/[query].ts @@ -42,7 +42,7 @@ export default async function handler( price: app.price, viewURL: app.trackViewUrl, })); - send(res, { result: apps || [] }); + send(res, { result: apps }); } catch (err) { sendError(res, err); } diff --git a/util/http.ts b/util/http.ts index 9f85da3..48b7354 100644 --- a/util/http.ts +++ b/util/http.ts @@ -15,7 +15,9 @@ export function fetch( url: string, method: HttpMethod = 'HEAD' ): Promise { - return nodeFetch(url, { method: method }); + return nodeFetch(url, { + method: method, + }); } export function send(res: NowResponse, data: object): void {