perf(server): use queries to refresh library assets (#7685)

* use queries instead of js

* missing await

* add mock methods

* fix test

* update sql

* linting
This commit is contained in:
Mert
2024-03-06 22:23:10 -05:00
committed by GitHub
parent fcb990665c
commit 1ec5d612fa
6 changed files with 63 additions and 13 deletions

View File

@@ -23,6 +23,8 @@ export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
updateAll: jest.fn(),
getByLibraryId: jest.fn(),
getByLibraryIdAndOriginalPath: jest.fn(),
updateOfflineLibraryAssets: jest.fn(),
getPathsNotInLibrary: jest.fn(),
deleteAll: jest.fn(),
save: jest.fn(),
remove: jest.fn(),