Refactored manticore SQL query to use scenes_stashed as primary table.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user