1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-20 00:22:24 +02:00

implementing search caching

This commit is contained in:
Patrik Braun
2017-07-30 09:06:12 +02:00
parent ebbe4009f5
commit f53c0f681f
6 changed files with 120 additions and 28 deletions

View File

@@ -159,7 +159,7 @@ export class SearchManager implements ISearchManager {
result.photos = photos;
}
let directories = await connection
const directories = await connection
.getRepository(DirectoryEntity)
.createQueryBuilder("dir")
.where('dir.name LIKE :text COLLATE utf8_general_ci', {text: "%" + text + "%"})