fix tests

This commit is contained in:
Jonathan Jogenfors
2024-03-17 00:54:50 +01:00
parent 0bf31bdb44
commit 9b5a0a90ce
17 changed files with 184 additions and 66 deletions
+8 -1
View File
@@ -476,7 +476,6 @@ export type UpdateLibraryDto = {
name?: string;
};
export type ScanLibraryDto = {
checkForOffline?: boolean;
refreshAllFiles?: boolean;
refreshModifiedFiles?: boolean;
};
@@ -1943,6 +1942,14 @@ export function scanLibrary({ id, scanLibraryDto }: {
body: scanLibraryDto
})));
}
export function scanDeletedFiles({ id }: {
id: string;
}, opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchText(`/library/${encodeURIComponent(id)}/scanDeleted`, {
...opts,
method: "POST"
}));
}
export function getLibraryStatistics({ id }: {
id: string;
}, opts?: Oazapfts.RequestOpts) {