mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 02:34:21 +01:00
sync
This commit is contained in:
@@ -29,6 +29,8 @@ export namespace Todo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function get(sessionID: string) {
|
export async function get(sessionID: string) {
|
||||||
return Storage.read<Info[]>(["todo", sessionID]) ?? []
|
return Storage.read<Info[]>(["todo", sessionID])
|
||||||
|
.then((x) => x || [])
|
||||||
|
.catch(() => [])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user