1
0
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:
Patrik J. Braun
2025-09-09 22:29:21 +02:00
parent ee745678a3
commit 8337eeafa4
3 changed files with 30 additions and 12 deletions

View File

@@ -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'