Refactored manticore SQL query to use scenes_stashed as primary table.

This commit is contained in:
2024-03-17 03:03:36 +01:00
parent 911461784b
commit 929de64aa0
6 changed files with 69 additions and 34 deletions

View File

@@ -11,7 +11,7 @@ export async function onBeforeRender(pageContext) {
const stashScenes = await fetchScenes(await curateScenesQuery({
...pageContext.urlQuery,
scope: pageContext.routeParams.scope || 'latest',
scope: pageContext.routeParams.scope || 'stashed',
stashId: stash.id,
}), {
page: Number(pageContext.routeParams.page) || 1,

View File

@@ -12,7 +12,7 @@ export default (pageContext) => {
routeParams: {
username: matched.params.username,
stashSlug: matched.params.stashSlug,
scope: matched.params.scope || 'latest',
scope: matched.params.scope || 'stashed',
page: matched.params.page || '1',
path,
},