refactor: remove redundant and() in query condition (#1261)
This commit is contained in:
parent
c3bc60730f
commit
31e02e935e
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ export async function getSuggestionsByDocumentId({
|
|||
return await db
|
||||
.select()
|
||||
.from(suggestion)
|
||||
.where(and(eq(suggestion.documentId, documentId)));
|
||||
.where(eq(suggestion.documentId, documentId));
|
||||
} catch (_error) {
|
||||
throw new ChatSDKError(
|
||||
"bad_request:database",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue