Should set last_refreshed_at, not updated

This commit is contained in:
Felix Ableitner 2020-12-01 21:07:32 +01:00
parent 89f9ecb634
commit c5f08768cd

View file

@ -190,7 +190,7 @@ impl User_ {
pub fn mark_as_updated(conn: &PgConnection, user_id: i32) -> Result<User_, Error> { pub fn mark_as_updated(conn: &PgConnection, user_id: i32) -> Result<User_, Error> {
diesel::update(user_.find(user_id)) diesel::update(user_.find(user_id))
.set((updated.eq(naive_now()),)) .set((last_refreshed_at.eq(naive_now()),))
.get_result::<Self>(conn) .get_result::<Self>(conn)
} }