Skip to content

Commit

Permalink
fix: fix Publication::batch_get
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Oct 3, 2023
1 parent 35c6b80 commit c69af84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "writing"
version = "1.1.4"
version = "1.1.5"
edition = "2021"
rust-version = "1.64"
description = ""
Expand Down
2 changes: 1 addition & 1 deletion src/db/model_publication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ impl Publication {
let row = db.execute(query.as_str(), params).await?.single_row()?;
let mut cols = ColumnsMap::with_capacity(fields.len());
cols.fill(row, &fields)?;
let mut doc = Publication::default();
let mut doc = Publication::with_pk(v.gid, v.cid, v.language, v.version);
doc.fill(&cols);
doc._fields = fields.clone();
res.push(doc);
Expand Down

0 comments on commit c69af84

Please sign in to comment.