diff --git a/pkgs/api/_kv.ts b/pkgs/api/_kv.ts index 1bcdbc6..11a5894 100644 --- a/pkgs/api/_kv.ts +++ b/pkgs/api/_kv.ts @@ -1,4 +1,4 @@ -import { BunSqliteKeyValue } from "bun-sqlite-key-value"; +import { BunSqliteKeyValue } from "pkgs/utils/kv"; import { apiContext } from "service-srv"; import { dir } from "utils/dir"; import { g } from "utils/global"; @@ -6,7 +6,7 @@ import { g } from "utils/global"; export const _ = { url: "/_kv", raw: true, - async api() { + async api(mode: "get" | "set" | "del", key: string, value?: any) { const { req } = apiContext(this); if (!g.kv) {