mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 09:32:19 +00:00
fix(share): handle NotFoundError for non-shared sessions in sync (#6634)
This commit is contained in:
parent
038cff4a93
commit
c600114db9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue