From 9da5e1758786dafaefa8505af56b4c764487f7e1 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 9 Sep 2023 01:37:33 -0400 Subject: [PATCH] User function changes --- src/data/user.ts | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/data/user.ts b/src/data/user.ts index 5da351b..86ff644 100644 --- a/src/data/user.ts +++ b/src/data/user.ts @@ -1,13 +1,6 @@ import { User } from "@prisma/client"; import { prisma } from "./prisma"; - -export interface UserFlags { - freeze_name: number; - "no chat rate limit": number; - chat_curse_1: number; - chat_curse_2: number; - override_id: string; -} +import { UserFlags } from "../util/types"; export async function createUser( _id: string, @@ -33,12 +26,14 @@ export async function readUser(_id: string) { if (!data) return null; - return { - _id: data.id, - name: data.name, - color: data.color, - flags: data.flags - }; + // return { + // _id: data.id, + // name: data.name, + // color: data.color, + // flags: data.flags + // }; + + return data; } export async function updateUser(