library needs to be persisted

This commit is contained in:
Violet Caulfield
2025-01-19 19:22:59 -06:00
parent a61bf9e998
commit dd4520eb40
2 changed files with 3 additions and 4 deletions

View File

@@ -27,8 +27,6 @@ export default class Client {
const serverJson = storage.getString(MMKVStorageKeys.Server);
const libraryJson = storage.getString(MMKVStorageKeys.Library);
if (user)
this.setAndPersistUser(user)
else if (userJson)
@@ -159,6 +157,7 @@ export default class Client {
}
public static setLibrary(library : JellifyLibrary) : void {
Client.#instance.library = library
Client.#instance = new Client(undefined, undefined, undefined, library);
}
}

View File

@@ -69,7 +69,7 @@ export function fetchFavoriteAlbums(): Promise<BaseItemDto[]> {
}
export function fetchFavoriteTracks(): Promise<BaseItemDto[]> {
console.debug(`Fetching user's favorite artists`);
console.debug(`Fetching user's favorite tracks`);
return new Promise(async (resolve, reject) => {
getItemsApi(Client.api!)