You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-11-23 22:24:44 +02:00
Fix PersonManager's person loading logic #1015
This commit is contained in:
@@ -153,7 +153,7 @@ export class BenchmarkRunner {
|
||||
await this.setupDB();
|
||||
|
||||
const queryParser = new SearchQueryParser(defaultQueryKeywords);
|
||||
const names = (await ObjectManagers.getInstance().PersonManager.getAll(this.session)).sort((a, b) => b.count - a.count);
|
||||
const names = (await ObjectManagers.getInstance().PersonManager.getAll(this.session)).sort((a, b) => b.cache.count - a.cache.count);
|
||||
const queries: { query: SearchQueryDTO, description: string }[] = TextSearchQueryTypes.map(t => {
|
||||
const q = {
|
||||
type: t, text: 'a'
|
||||
|
||||
Reference in New Issue
Block a user