Skip to content

Commit 4cb4b36

Browse files
committed
chore: add comments
1 parent bfe3bd7 commit 4cb4b36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/api/chat/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export async function GET(req: Request) {
188188
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
189189
}
190190

191+
// Get the chat by id
191192
const chat = await supabase
192193
.from("chats")
193194
.select("*")
@@ -202,6 +203,7 @@ export async function GET(req: Request) {
202203
return new Response("Forbidden", { status: 403 })
203204
}
204205

206+
// Get the stream ids by chat id
205207
const streamIds = await supabase
206208
.from("stream_ids")
207209
.select("*")

0 commit comments

Comments
 (0)