mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
wip: zen
This commit is contained in:
parent
43c9702aa7
commit
e8751d976e
3 changed files with 20 additions and 3 deletions
|
|
@ -30,6 +30,18 @@ export function formatDateUTC(date: Date) {
|
|||
return date.toLocaleDateString("en-US", options)
|
||||
}
|
||||
|
||||
export const queryIsLoggedIn = query(async () => {
|
||||
"use server"
|
||||
return withActor(() => {
|
||||
try {
|
||||
Actor.assert("account")
|
||||
return true
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
})
|
||||
}, "isLoggedIn.get")
|
||||
|
||||
export const querySessionInfo = query(async (workspaceID: string) => {
|
||||
"use server"
|
||||
return withActor(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue