Added stash archiving.

This commit is contained in:
2026-07-26 03:40:32 +02:00
parent 02ee99d52f
commit bf220f6b4e
5 changed files with 97 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ export function curateStash(stash, assets = {}) {
slug: stash.slug,
isPrimary: stash.primary,
isPublic: stash.public,
isArchived: stash.archived,
createdAt: stash.created_at,
stashedScenes: stash.stashed_scenes ?? null,
stashedMovies: stash.stashed_movies ?? null,
@@ -65,7 +66,8 @@ function curateStashEntry(stash, user) {
user_id: user?.id || undefined,
name: stash.name || undefined,
slug: slugify(stash.name) || undefined,
public: stash.isPublic ?? false,
public: stash.isPublic ?? undefined,
archived: stash.isArchived ?? undefined,
comment: stash.comment,
meta: stash.meta,
};