Browse Source
Merge pull request #128 from mprasil/revision_date
Return revision date in miliseconds (fixes #127)
pull/130/head
Daniel García
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/api/core/accounts.rs
|
|
@ -244,7 +244,7 @@ fn delete_account(data: JsonUpcase<PasswordData>, headers: Headers, conn: DbConn |
|
|
|
|
|
|
|
#[get("/accounts/revision-date")] |
|
|
|
fn revision_date(headers: Headers) -> String { |
|
|
|
let revision_date = headers.user.updated_at.timestamp(); |
|
|
|
let revision_date = headers.user.updated_at.timestamp_millis(); |
|
|
|
revision_date.to_string() |
|
|
|
} |
|
|
|
|
|
|
|