Updates for http-api verified commits change

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-04-07 13:29:59 +02:00
parent 101d6d329f
commit efb91c7e73
5 changed files with 31 additions and 9 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ export async function get(
): Promise<any> {
const query: Record<string, string> = {};
for (const [key, val] of Object.entries(params)) {
query[key] = val.toString();
if (val !== undefined && val !== null) {
query[key] = val.toString();
}
}
const base = api.host;