fix: migrating level to classic-level

This commit is contained in:
Chubby Granny Chaser
2025-01-22 00:48:54 +00:00
parent 2aff983dec
commit f387560836
4 changed files with 7 additions and 21 deletions

View File

@@ -1,4 +1,6 @@
import { levelDatabasePath } from "@main/constants";
import { Level } from "level";
import { ClassicLevel } from "classic-level";
export const db = new Level(levelDatabasePath, { valueEncoding: "json" });
export const db = new ClassicLevel(levelDatabasePath, {
valueEncoding: "json",
});