vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 0fa48a749f3fd80115ab1651eb0b998c6dba8337
parent 6fdeeb56ce2361aac89aca7a69d9c9177b764254
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue, 21 Aug 2018 13:46:05 +0200

Merge pull request #143 from mprasil/update_revision_fix

Actually update the revision date for user struct, not just in DB
Diffstat:
Msrc/db/models/user.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/db/models/user.rs b/src/db/models/user.rs @@ -155,12 +155,13 @@ impl User { } pub fn update_revision(&mut self, conn: &DbConn) -> QueryResult<()> { + self.updated_at = Utc::now().naive_utc(); diesel::update( users::table.filter( users::uuid.eq(&self.uuid) ) ) - .set(users::updated_at.eq(Utc::now().naive_utc())) + .set(users::updated_at.eq(&self.updated_at)) .execute(&**conn).and(Ok(())) }