Run prettier

This commit is contained in:
Jared Palmer 2024-11-14 12:16:05 -05:00
parent e6806aaa54
commit 24cb81bce0
21 changed files with 4203 additions and 3520 deletions

View file

@ -1,11 +1,11 @@
import { auth } from "@/app/(auth)/auth";
import { getChatsByUserId } from "@/db/queries";
import { auth } from '@/app/(auth)/auth';
import { getChatsByUserId } from '@/db/queries';
export async function GET() {
const session = await auth();
if (!session || !session.user) {
return Response.json("Unauthorized!", { status: 401 });
return Response.json('Unauthorized!', { status: 401 });
}
const chats = await getChatsByUserId({ id: session.user.id! });