Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Dec 2, 2024
1 parent b71bfbf commit 6b49e3c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions core/src/data_sources/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ impl DataSource {
// TODO(@fontanierh): use a different type for "DocumentWithTextAndTokenCount"
let doc_text = main_collection_document.text;
let doc_token_count = main_collection_document.token_count;
let sql_upsert_params = UpsertDocument {
let params = UpsertDocument {
document_id: main_collection_document.document_id,
timestamp: main_collection_document.timestamp,
tags: main_collection_document.tags,
Expand All @@ -746,11 +746,7 @@ impl DataSource {

// Upsert document (SQL).
let mut doc = store
.upsert_data_source_document(
&self.project,
self.data_source_id.clone(),
sql_upsert_params,
)
.upsert_data_source_document(&self.project, self.data_source_id.clone(), params)
.await?;

doc.text = doc_text;
Expand Down

0 comments on commit 6b49e3c

Please sign in to comment.