1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

fix(web): profile picture url (#9754)

This commit is contained in:
Michel Heusschen 2024-05-25 17:13:03 +02:00 committed by GitHub
parent 8a7b0f66a4
commit 98c4c683ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,8 +179,8 @@ export const getAssetThumbnailUrl = (
return createUrl(path, { format, key: getKey(), c: checksum });
};
export const getProfileImageUrl = (...[userId]: [string]) => {
const path = `/users/profile-image/${userId}`;
export const getProfileImageUrl = (userId: string) => {
const path = `/users/${userId}/profile-image`;
return createUrl(path);
};