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.
 

13 lines
360 B

import { knex } from '../../database/knex';
import { User } from './user.model';
export interface UserBan {
id: number;
user_id: User['id'];
published: string;
}
// eslint-disable-next-line max-len
export const getUserBan = async (userId: number): Promise<UserBan|undefined> => {
return knex<UserBan>('user_ban').where('user_id', userId).first();
};