summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 15:26:08 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 15:26:22 -0700
commit5868714f4176c9cb70245d5164cc9196c2314a75 (patch)
tree22494188f7b1521cd9e4d00b8fb6a04d09abca01
parent29b31d042cbfde67d47213a9cd80aec0a8af6837 (diff)
downloadfatcat-5868714f4176c9cb70245d5164cc9196c2314a75.tar.gz
fatcat-5868714f4176c9cb70245d5164cc9196c2314a75.zip
include edit_extra on single-entity creates
-rw-r--r--CHANGELOG.md8
-rw-r--r--rust/src/entity_crud.rs1
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 183a7304..3260e8b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,12 @@ See also:
## [Unreleased]
+### Fixed
+
+- `edit_extra` on individual entity create was not being written to database
+
+### Added
+
- added `retraction` as an allowable `release_type`, for a publication. When
used, the `release_type` should also be `retraction`.
@@ -43,7 +49,7 @@ See also:
## [0.2.1] - 2019-04-09
No API or SQL schema changes in this release. Macaroon generation and
-verification way broken; all non-CLI-generated tokens will need to be
+verification was broken; all non-CLI-generated tokens will need to be
regenerated (eg, log-out, log-in).
### Fixed
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index b72ccd37..dc8a3e82 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -346,6 +346,7 @@ macro_rules! generic_db_create {
$edit_table::editgroup_id.eq(edit_context.editgroup_id.to_uuid()),
$edit_table::rev_id.eq(&rev_id),
$edit_table::ident_id.eq(&ident),
+ $edit_table::extra_json.eq(self.edit_extra.clone()),
))
.get_result(conn)?;
Ok(edit)