Fixed SQL total and pagination, showing end of result info. Hiding heart from scene tiles when not logged in.

This commit is contained in:
2024-03-17 22:15:11 +01:00
parent 3f36c0ae0a
commit 3238e678ef
6 changed files with 114 additions and 74 deletions

View File

@@ -1,3 +1,4 @@
import config from 'config';
import { differenceInYears } from 'date-fns';
import { unit } from 'mathjs';
@@ -272,6 +273,10 @@ export async function fetchActors(filters, rawOptions) {
sort: [{ country: { order: 'asc' } }],
},
},
options: {
max_matches: config.database.manticore.maxMatches,
max_query_time: config.database.manticore.maxQueryTime,
},
});
const actorIds = result.hits.hits.map((hit) => Number(hit._id));