From c2251dc4fce2b8241e933bbff471753d2be86e3e Mon Sep 17 00:00:00 2001 From: moon Date: Wed, 20 Mar 2024 13:42:10 -0700 Subject: [PATCH] fix crypto is not defined --- src/lib/adapters/sqlite.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/adapters/sqlite.ts b/src/lib/adapters/sqlite.ts index 897b5a4..c630101 100644 --- a/src/lib/adapters/sqlite.ts +++ b/src/lib/adapters/sqlite.ts @@ -14,6 +14,8 @@ import { Database } from "better-sqlite3"; import { load } from "./sqlite/sqlite_vss"; import { sqliteTables } from "./sqlite/sqliteTables"; +import crypto from "crypto"; + export class SqliteDatabaseAdapter extends DatabaseAdapter { private db: Database;