High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): absolute path match in external library (#19551)
Daimolean926ff075a37c
diff --git a/server/src/repositories/view-repository.ts b/server/src/repositories/view-repository.tsindex 03e8b3763f..3a498d5b3e 100644--- a/server/src/repositories/view-repository.ts+++ b/server/src/repositories/view-repository.ts@@ -22,12 +22,12 @@ export class ViewRepository {.where('localDateTime', 'is not', null).execute();- return results.map((row) => row.directoryPath.replaceAll(/^\/|\/$/g, ''));+ return results.map((row) => row.directoryPath.replaceAll(/\/$/g, ''));}@GenerateSql({ params: [DummyValue.UUID, DummyValue.STRING] })async getAssetsByOriginalPath(userId: string, partialPath: string) {- const normalizedPath = partialPath.replaceAll(/^\/|\/$/g, '');+ const normalizedPath = partialPath.replaceAll(/\/$/g, '');return this.db.selectFrom('assets')