refactor: remove redundant and() in query condition (#1261)

This commit is contained in:
Sheikh Sifat 2025-11-01 06:14:27 +06:00 committed by GitHub
parent c3bc60730f
commit 31e02e935e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -425,7 +425,7 @@ export async function getSuggestionsByDocumentId({
return await db return await db
.select() .select()
.from(suggestion) .from(suggestion)
.where(and(eq(suggestion.documentId, documentId))); .where(eq(suggestion.documentId, documentId));
} catch (_error) { } catch (_error) {
throw new ChatSDKError( throw new ChatSDKError(
"bad_request:database", "bad_request:database",