mirror of
https://github.com/immich-app/immich.git
synced 2026-03-10 04:07:36 +03:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
@@ -10,9 +10,12 @@
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
const getUserAvatar = async () => {
|
||||
const { data } = await api.userApi.getProfileImage(user.id, {
|
||||
responseType: 'blob'
|
||||
});
|
||||
const { data } = await api.userApi.getProfileImage(
|
||||
{ userId: user.id },
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
|
||||
if (data instanceof Blob) {
|
||||
return URL.createObjectURL(data);
|
||||
|
||||
Reference in New Issue
Block a user