Skip to content

Commit

Permalink
prevent writes to data_sources_documents.source_url
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Jan 18, 2025
1 parent 8b701cd commit 63eec4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/stores/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ impl Store for PostgresStore {
.prepare(
"INSERT INTO data_sources_documents \
(id, data_source, created, document_id, timestamp, tags_array, \
source_url, hash, text_size, chunk_count, status) \
hash, text_size, chunk_count, status) \
VALUES (DEFAULT, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10) \
RETURNING id, created",
)
Expand All @@ -1882,7 +1882,6 @@ impl Store for PostgresStore {
&create_params.document_id,
&(create_params.timestamp as i64),
&create_params.tags,
&create_params.source_url,
&create_params.hash,
&(create_params.text_size as i64),
&(create_params.chunk_count as i64),
Expand Down

0 comments on commit 63eec4a

Please sign in to comment.