You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
449 B

import { knex } from '../database/knex';
export interface Site {
id: number;
name: string;
description?: string;
creator_id: number;
published: string;
updated?: string;
enable_downvotes: boolean;
open_registration: boolean;
enable_nsfw: boolean;
enable_create_communities: boolean;
icon?: string;
banner?: string;
export const getSiteDetail = async (): Promise<Site|undefined> => { return knex<Site>('site').first(); };