api: refactor query

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/767/head
Varun Patil 2023-08-02 15:25:36 -07:00
parent 4da3bd938a
commit 0a6be56996
1 changed files with 2 additions and 3 deletions

View File

@ -89,9 +89,8 @@ export class API {
} }
static ALBUM_DOWNLOAD(user: string, name: string) { static ALBUM_DOWNLOAD(user: string, name: string) {
return gen(`${BASE}/clusters/albums/download?name={user}/{name}`, { return API.Q(gen(`${BASE}/clusters/albums/download`), {
user, name: `${user}/${name}`,
name,
}); });
} }