fix: remove unused variables in terminal.ts and starter.ts
Removed 2 unused variables: - Removed unused JWTPayload type import from terminal.ts - Removed unused _promise parameter from starter.ts
This commit is contained in:
@@ -11,7 +11,7 @@ import { sshCredentials } from "../database/db/schema.js";
|
|||||||
import { eq, and } from "drizzle-orm";
|
import { eq, and } from "drizzle-orm";
|
||||||
import { sshLogger } from "../utils/logger.js";
|
import { sshLogger } from "../utils/logger.js";
|
||||||
import { SimpleDBOps } from "../utils/simple-db-ops.js";
|
import { SimpleDBOps } from "../utils/simple-db-ops.js";
|
||||||
import { AuthManager, type JWTPayload } from "../utils/auth-manager.js";
|
import { AuthManager } from "../utils/auth-manager.js";
|
||||||
import { UserCrypto } from "../utils/user-crypto.js";
|
import { UserCrypto } from "../utils/user-crypto.js";
|
||||||
|
|
||||||
interface ConnectToHostData {
|
interface ConnectToHostData {
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ import { systemLogger, versionLogger } from "./utils/logger.js";
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on("unhandledRejection", (reason, _promise) => {
|
process.on("unhandledRejection", (reason) => {
|
||||||
systemLogger.error("Unhandled promise rejection", reason, {
|
systemLogger.error("Unhandled promise rejection", reason, {
|
||||||
operation: "error_handling",
|
operation: "error_handling",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user