From 0a6be5699682797c0bfc5067b213100896fef71b Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 2 Aug 2023 15:25:36 -0700 Subject: [PATCH] api: refactor query Signed-off-by: Varun Patil --- src/services/API.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/API.ts b/src/services/API.ts index 9a3a98f6..3820e497 100644 --- a/src/services/API.ts +++ b/src/services/API.ts @@ -89,9 +89,8 @@ export class API { } static ALBUM_DOWNLOAD(user: string, name: string) { - return gen(`${BASE}/clusters/albums/download?name={user}/{name}`, { - user, - name, + return API.Q(gen(`${BASE}/clusters/albums/download`), { + name: `${user}/${name}`, }); }