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
401 B

import { knex } from '../database/knex';
export interface Comment {
id: number;
creator_id: number;
post_id: number;
parent_id?: number;
content: string;
removed: boolean;
read: boolean;
published: string;
updated?: string;
deleted: boolean;
ap_id: string;
local: boolean;
}
export const getCommentList = async (): Promise<Comment[]> => { return knex<Comment>('comment'); };