mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: remove axios dependency from CLI (#6888)
This commit is contained in:
parent
c29976cd6f
commit
6ed33da2a4
218 changed files with 22789 additions and 237 deletions
|
|
@ -51,7 +51,7 @@ export class SessionService {
|
|||
|
||||
const api = new ImmichApi(instanceUrl, apiKey);
|
||||
|
||||
const { data: pingResponse } = await api.serverInfoApi.pingServer().catch((error) => {
|
||||
const pingResponse = await api.serverInfoApi.pingServer().catch((error) => {
|
||||
throw new Error(`Failed to connect to server ${api.instanceUrl}: ${error.message}`);
|
||||
});
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ export class SessionService {
|
|||
const api = new ImmichApi(instanceUrl, apiKey);
|
||||
|
||||
// Check if server and api key are valid
|
||||
const { data: userInfo } = await api.userApi.getMyUserInfo().catch((error) => {
|
||||
const userInfo = await api.userApi.getMyUserInfo().catch((error) => {
|
||||
throw new LoginError(`Failed to connect to server ${instanceUrl}: ${error.message}`);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue