fix: correct import ordering and update tests for drizzle-orm migration

This commit is contained in:
MythEclipse
2026-05-14 15:47:03 +07:00
parent 50d4517079
commit b600dad011
10 changed files with 87 additions and 140 deletions
+6 -2
View File
@@ -5,6 +5,7 @@ import http from "http";
import path from "path";
import * as prism from "prism-media";
import { WebSocketServer } from "ws";
import { getDatabase } from "./database/drizzle";
import { AppError } from "./errors";
import { createChildLogger, logger } from "./logger";
import { getMetrics, uptimeGauge } from "./metrics";
@@ -18,7 +19,6 @@ import {
getPersistedValue,
setPersistedValue,
} from "./muxer-queue";
import { getDatabase } from "./database/drizzle";
import { discordPlayer } from "./player";
import type { VoiceController } from "./voiceController";
@@ -296,7 +296,11 @@ export async function startWebserver(
count: attachments.length,
});
} else {
const messages = await getMessagesByChannel(channel, limitNum, offsetNum);
const messages = await getMessagesByChannel(
channel,
limitNum,
offsetNum,
);
res.json({
type: "text",
data: messages,