mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 19:01:02 +00:00
feat: separate game assets from game stats
This commit is contained in:
@@ -3,9 +3,9 @@ import type { ShopAssets } from "@types";
|
||||
import { db } from "../level";
|
||||
import { levelKeys } from "./keys";
|
||||
|
||||
export const gamesShopAssetsSublevel = db.sublevel<string, ShopAssets>(
|
||||
levelKeys.gameShopAssets,
|
||||
{
|
||||
valueEncoding: "json",
|
||||
}
|
||||
);
|
||||
export const gamesShopAssetsSublevel = db.sublevel<
|
||||
string,
|
||||
ShopAssets & { updatedAt: number }
|
||||
>(levelKeys.gameShopAssets, {
|
||||
valueEncoding: "json",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user