feat: persist playtime that failed to sync on leveldb

This commit is contained in:
Zamitto
2025-05-22 13:11:32 -03:00
parent f9d5cfce73
commit 772aea69a9
4 changed files with 59 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ import i18n from "i18next";
import path from "node:path";
import url from "node:url";
import { electronApp, optimizer } from "@electron-toolkit/utils";
import { logger, WindowManager } from "@main/services";
import { logger, clearGamesPlaytime, WindowManager } from "@main/services";
import resources from "@locales";
import { PythonRPC } from "./services/python-rpc";
import { db, levelKeys } from "./level";