(database): remove deleted types & comments.

This commit is contained in:
2026-08-27 22:50:58 +08:00
parent c055ec801f
commit 08ed854797
+1 -5
View File
@@ -1,12 +1,10 @@
import postgres from "postgres"; import postgres from "postgres";
import { Configuration, Settings } from "../types"; import { Configuration } from "../types";
// ---------- // ----------
const client = postgres(process.env["DATABASE_URL"]!); const client = postgres(process.env["DATABASE_URL"]!);
// --- Settings ---
export async function init(): Promise<void> { export async function init(): Promise<void> {
await client` await client`
CREATE TABLE IF NOT EXISTS settings ( CREATE TABLE IF NOT EXISTS settings (
@@ -54,8 +52,6 @@ export async function init(): Promise<void> {
`; `;
} }
// Guild Configuration
export async function getConfiguration(guildId: string): Promise<Configuration> { export async function getConfiguration(guildId: string): Promise<Configuration> {
const [row] = await client` const [row] = await client`
SELECT config FROM settings SELECT config FROM settings