chore: generate

This commit is contained in:
GitHub Action
2026-01-21 02:39:31 +00:00
parent cbe20d22d3
commit dac73572e0
3 changed files with 40 additions and 24 deletions

View File

@@ -255,11 +255,15 @@ export namespace Session {
}
const { ShareNext } = await import("@/share/share-next")
const share = await ShareNext.create(id)
await update(id, (draft) => {
draft.share = {
url: share.url,
}
}, { touch: false })
await update(
id,
(draft) => {
draft.share = {
url: share.url,
}
},
{ touch: false },
)
return share
})
@@ -267,9 +271,13 @@ export namespace Session {
// Use ShareNext to remove the share (same as share function uses ShareNext to create)
const { ShareNext } = await import("@/share/share-next")
await ShareNext.remove(id)
await update(id, (draft) => {
draft.share = undefined
}, { touch: false })
await update(
id,
(draft) => {
draft.share = undefined
},
{ touch: false },
)
})
export async function update(id: string, editor: (session: Info) => void, options?: { touch?: boolean }) {