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.
 

15 lines
361 B

import { knex } from '../../database/knex';
import { User } from './user.model';
export interface UserTags {
pronouns: string[];
}
export interface UserTag {
user_id: User['id'];
tags: UserTags;
}
export const getUserTags = async (userId: number): Promise<UserTag|undefined> => {
return knex<UserTag>('user_tag').where('user_id', userId).first();
};