Use server naming for shared API/events

This commit is contained in:
Shantur Rathore
2025-11-21 00:04:01 +00:00
parent d6fdef68d9
commit 2ff51c1866
9 changed files with 31 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
import type { ServerMeta } from "../../../server/src/api-types"
import { cliApi } from "./api-client"
import { serverApi } from "./api-client"
let cachedMeta: ServerMeta | null = null
let pendingMeta: Promise<ServerMeta> | null = null
@@ -11,7 +11,7 @@ export async function getServerMeta(): Promise<ServerMeta> {
if (pendingMeta) {
return pendingMeta
}
pendingMeta = cliApi.fetchServerMeta().then((meta) => {
pendingMeta = serverApi.fetchServerMeta().then((meta) => {
cachedMeta = meta
pendingMeta = null
return meta