Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Feb 22, 2025
1 parent f02e745 commit 92f0e6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/version2/avatars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ export class Avatars {
parameters: Parameters.GetAllSystemAvatars | string,
callback?: Callback<T>,
): Promise<void | T> {
const type = typeof parameters === 'string' ? parameters : parameters.type;

const config: RequestConfig = {
url: `/rest/api/2/avatar/${parameters.type}/system`,
url: `/rest/api/2/avatar/${type}/system`,
method: 'GET',
};

Expand Down

0 comments on commit 92f0e6f

Please sign in to comment.