mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
refactor: sdk init (#9563)
This commit is contained in:
parent
975f2351ec
commit
136bb69bd0
9 changed files with 40 additions and 19 deletions
|
|
@ -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]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue