From 2e90be63d5f3abbb69dfb6a02339af071650dcef Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 19 Jul 2024 21:30:23 +0700 Subject: [PATCH] fix --- pkgs/api/_kv.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {