mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-23 10:39:05 -04:00
(database): remove deleted types & comments.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user