fix: test

This commit is contained in:
Chubby Granny Chaser
2025-11-23 20:34:05 +00:00
parent dc04cff378
commit c3880ce181
32 changed files with 5800 additions and 1 deletions

View File

@@ -20,6 +20,13 @@ import {
WSClient,
} from "@main/services";
import { migrateDownloadSources } from "./helpers/migrate-download-sources";
import path from "node:path";
const helloAddon = require(
path.join(__dirname, "..", "..", "native_build", "hello_napi.node")
);
console.log(helloAddon.hello());
export const loadState = async () => {
await Lock.acquireLock();

View File

@@ -30,7 +30,7 @@ export class HydraApi {
private static instance: AxiosInstance;
private static readonly EXPIRATION_OFFSET_IN_MS = 1000 * 60 * 5; // 5 minutes
private static readonly ADD_LOG_INTERCEPTOR = true;
private static readonly ADD_LOG_INTERCEPTOR = false;
private static secondsToMilliseconds(seconds: number) {
return seconds * 1000;