Run prettier
This commit is contained in:
parent
e6806aaa54
commit
24cb81bce0
21 changed files with 4203 additions and 3520 deletions
|
|
@ -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! });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue