From c115040e9015a039b80fb7b985955a1a2638af5d Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Thu, 16 Jan 2025 02:37:57 +0000 Subject: [PATCH] fix: fixing sonar issues --- src/main/events/auth/get-session-hash.ts | 3 +-- src/main/events/auth/sign-out.ts | 3 +-- src/main/events/misc/open-checkout.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/events/auth/get-session-hash.ts b/src/main/events/auth/get-session-hash.ts index 5848cbd7..c81e0965 100644 --- a/src/main/events/auth/get-session-hash.ts +++ b/src/main/events/auth/get-session-hash.ts @@ -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) => { diff --git a/src/main/events/auth/sign-out.ts b/src/main/events/auth/sign-out.ts index 866d1ec0..50ea0c51 100644 --- a/src/main/events/auth/sign-out.ts +++ b/src/main/events/auth/sign-out.ts @@ -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 diff --git a/src/main/events/misc/open-checkout.ts b/src/main/events/misc/open-checkout.ts index 95d76d5b..76316a6e 100644 --- a/src/main/events/misc/open-checkout.ts +++ b/src/main/events/misc/open-checkout.ts @@ -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(levelKeys.auth, {