aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 16:50:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 16:50:32 -0700
commit3ed7db573438d3620d295813a81237acb91155cb (patch)
tree714abba5a1a84449cf9beb152b5ee56996627f37 /rust/src/api_server.rs
parenta96ca6e8df949f32e7647a285748712a9d842611 (diff)
downloadfatcat-3ed7db573438d3620d295813a81237acb91155cb.tar.gz
fatcat-3ed7db573438d3620d295813a81237acb91155cb.zip
refactor changelog entry spec structure
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index ca57ae29..aaf3d9a7 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -899,7 +899,7 @@ impl Server {
Ok(ed)
}
- fn editor_changelog_get_handler(&self, username: String) -> Result<Changelogentries> {
+ fn editor_changelog_get_handler(&self, username: String) -> Result<Vec<ChangelogEntry>> {
let conn = self.db_pool.get().expect("db_pool error");
// TODO: single query
@@ -913,7 +913,7 @@ impl Server {
let entries = changes
.iter()
- .map(|(row, _)| ChangelogentriesInner {
+ .map(|(row, _)| ChangelogEntry {
index: row.id,
editgroup_id: row.editgroup_id,
timestamp: chrono::DateTime::from_utc(row.timestamp, chrono::Utc),