diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-11 16:18:20 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-11 16:18:20 -0800 |
commit | 99373d8662b63cc50d30a0a9b277a558f8c3ccc9 (patch) | |
tree | a9f7c38bc3d9a0f04013a84d2ce325077415dd59 /rust/src/database_models.rs | |
parent | 39ea4f451543822bd6e525cfac252363b78cc6ec (diff) | |
download | fatcat-99373d8662b63cc50d30a0a9b277a558f8c3ccc9.tar.gz fatcat-99373d8662b63cc50d30a0a9b277a558f8c3ccc9.zip |
implement since/before ordering for range requests
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r-- | rust/src/database_models.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index c033c6e5..63fbcb29 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -563,11 +563,12 @@ pub struct EditgroupRow { impl EditgroupRow { /// Returns an Editgroup API model *without* the entity edits actually populated. Useful for, /// eg, entity history queries (where we already have the entity edit we want) - pub fn into_model_partial(self) -> Editgroup { + pub fn into_model_partial(self, changelog_index: Option<i64>) -> Editgroup { Editgroup { editgroup_id: Some(uuid2fcid(&self.id)), editor_id: Some(uuid2fcid(&self.editor_id)), editor: None, + changelog_index: changelog_index, submitted: self .submitted .map(|v| chrono::DateTime::from_utc(v, chrono::Utc)), |