Fixed scene actor stashes not filtered down. Fixed logout redirect not waiting for session destroy.

This commit is contained in:
DebaucheryLibrarian 2024-03-27 16:18:55 +01:00
parent ccf6c26789
commit 6f6cbf4c1b
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ function search() {
} }
async function logout() { async function logout() {
del('/session'); await del('/session');
navigate('/login', null, { redirect: true }); navigate('/login', null, { redirect: true });
} }

View File

@ -60,7 +60,7 @@ function curateScene(rawScene, assets) {
} : null, } : null,
actors: sortActorsByGender(assets.actors.map((actor) => curateActor(actor, { actors: sortActorsByGender(assets.actors.map((actor) => curateActor(actor, {
sceneDate: rawScene.effective_date, sceneDate: rawScene.effective_date,
stashes: assets.actorStashes, stashes: assets.actorStashes.filter((actorStash) => actorStash.actor_id === actor.id),
})), { title: rawScene.title }), })), { title: rawScene.title }),
directors: assets.directors.map((director) => ({ directors: assets.directors.map((director) => ({
id: director.id, id: director.id,