fix: fixing sonar issues

This commit is contained in:
Chubby Granny Chaser 2025-01-16 02:37:57 +00:00
parent a23106b0b1
commit c115040e90
No known key found for this signature in database
3 changed files with 3 additions and 6 deletions

View File

@ -1,9 +1,8 @@
import jwt from "jsonwebtoken";
import { registerEvent } from "../register-event";
import { db } from "@main/level";
import { db, levelKeys } from "@main/level";
import type { Auth } from "@types";
import { levelKeys } from "@main/level";
import { Crypto } from "@main/services";
const getSessionHash = async (_event: Electron.IpcMainInvokeEvent) => {

View File

@ -3,8 +3,7 @@ import { DownloadManager, HydraApi, gamesPlaytime } from "@main/services";
import { dataSource } from "@main/data-source";
import { DownloadQueue, Game } from "@main/entity";
import { PythonRPC } from "@main/services/python-rpc";
import { db } from "@main/level";
import { levelKeys } from "@main/level";
import { db, levelKeys } from "@main/level";
const signOut = async (_event: Electron.IpcMainInvokeEvent) => {
const databaseOperations = dataSource

View File

@ -1,9 +1,8 @@
import { shell } from "electron";
import { registerEvent } from "../register-event";
import { Crypto, HydraApi } from "@main/services";
import { db } from "@main/level";
import { db, levelKeys } from "@main/level";
import type { Auth } from "@types";
import { levelKeys } from "@main/level";
const openCheckout = async (_event: Electron.IpcMainInvokeEvent) => {
const auth = await db.get<string, Auth>(levelKeys.auth, {