mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 01:03:57 +00:00
feat: migrating games to level
This commit is contained in:
11
src/main/level/sublevels/downloads.ts
Normal file
11
src/main/level/sublevels/downloads.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { Download } from "@types";
|
||||
|
||||
import { db } from "../level";
|
||||
import { levelKeys } from "./keys";
|
||||
|
||||
export const downloadsSublevel = db.sublevel<string, Download>(
|
||||
levelKeys.downloads,
|
||||
{
|
||||
valueEncoding: "json",
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user