mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix(share): handle NotFoundError for non-shared sessions in sync (#6634)
This commit is contained in:
parent
038cff4a93
commit
c600114db9
@ -127,7 +127,7 @@ export namespace ShareNext {
|
||||
const queued = queue.get(sessionID)
|
||||
if (!queued) return
|
||||
queue.delete(sessionID)
|
||||
const share = await get(sessionID)
|
||||
const share = await get(sessionID).catch(() => undefined)
|
||||
if (!share) return
|
||||
|
||||
await fetch(`${await url()}/api/share/${share.id}/sync`, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user