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
No known key found for this signature in database
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",
});