style: fix Biome dead-code warnings from oRPC migration (CI lint gate)

This commit is contained in:
asepharyana
2026-08-16 14:51:47 +07:00
parent 726a8e116b
commit 38bda66933
7 changed files with 37 additions and 31 deletions
@@ -1,6 +1,6 @@
import { and, desc, eq, type SQL, sql } from "drizzle-orm";
import { desc, eq } from "drizzle-orm";
import { getDatabase } from "../../shared/database/index.js";
import { pgChatbotMessagesTable, pgMessagesTable } from "../../shared/index.js";
import { pgChatbotMessagesTable } from "../../shared/index.js";
import { createChildLogger } from "../../shared/logger/index.js";
const logger = createChildLogger("chatbot.repository");
@@ -9,7 +9,6 @@ import {
pgUserReputationsTable,
pgVoiceRecordingsTable,
} from "../../shared/index.js";
import { tools } from "./chatbot.toolDefs.js";
/**
* Executor for the chatbot's server-watcher tools. The tool *definitions*
@@ -430,7 +429,7 @@ async function moderationTimeline(
return JSON.stringify(rows);
}
async function corrections(guildId?: string, limit = 10): Promise<string> {
async function corrections(_guildId?: string, limit = 10): Promise<string> {
const db = getDatabase();
const rows = await db
.select({