fix: chat query (#1170)

Co-authored-by: josh <josh@afterima.ge>
This commit is contained in:
Nicklas Scharpff 2025-09-09 00:29:04 +02:00 committed by GitHub
parent d3b3449eb8
commit f2320bf321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 879 additions and 145 deletions

View file

@ -34,7 +34,7 @@ export async function GET(
return new ChatSDKError('unauthorized:chat').toResponse();
}
let chat: Chat;
let chat: Chat | null;
try {
chat = await getChatById({ id: chatId });