mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 09:49:53 +09:00
refactor: sdk init (#9563)
This commit is contained in:
@@ -5,8 +5,8 @@ import {
|
||||
AssetJobName,
|
||||
JobName,
|
||||
ThumbnailFormat,
|
||||
defaults,
|
||||
finishOAuth,
|
||||
getBaseUrl,
|
||||
linkOAuthAccount,
|
||||
startOAuth,
|
||||
unlinkOAuthAccount,
|
||||
@@ -155,7 +155,7 @@ const createUrl = (path: string, parameters?: Record<string, unknown>) => {
|
||||
const url = new URL(path, 'https://example.com');
|
||||
url.search = searchParameters.toString();
|
||||
|
||||
return defaults.baseUrl + url.pathname + url.search + url.hash;
|
||||
return getBaseUrl() + url.pathname + url.search + url.hash;
|
||||
};
|
||||
|
||||
export const getAssetFileUrl = (...[assetId, isWeb, isThumb]: [string, boolean, boolean]) => {
|
||||
|
||||
Reference in New Issue
Block a user