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
|
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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue