mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-11 00:08:37 +01:00
implementing domain selector
This commit is contained in:
@@ -4,7 +4,7 @@ import type OpenAI from "openai";
|
||||
import { getChartsInMessage } from "~/server/services/AiService";
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
const data = await getRequestData(event);
|
||||
const data = await getRequestDataOld(event);
|
||||
if (!data) return;
|
||||
|
||||
const isAdmin = data.user.user.roles.includes('ADMIN');
|
||||
|
||||
Reference in New Issue
Block a user