Fixed heart menu stash creation.

This commit is contained in:
2024-08-23 01:35:39 +02:00
parent b683653af4
commit 0d383c35b5
3 changed files with 13 additions and 8 deletions

View File

@@ -142,11 +142,11 @@ export async function createStash(newStash, sessionUser) {
verifyStashName(newStash);
try {
const stash = await knex('stashes')
const [stash] = await knex('stashes')
.insert(curateStashEntry(newStash, sessionUser))
.returning('*');
const curatedStash = curateStash(stash);
const curatedStash = curateStash(stash, { user: sessionUser });
return curatedStash;
} catch (error) {