mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 00:14:03 +00:00
parent
f196f05f20
commit
ab2b8df1cb
1 changed files with 4 additions and 1 deletions
|
@ -237,7 +237,10 @@ impl Person_ for Person {
|
||||||
|
|
||||||
// Set the local user info to none
|
// Set the local user info to none
|
||||||
diesel::update(local_user::table.filter(local_user::person_id.eq(person_id)))
|
diesel::update(local_user::table.filter(local_user::person_id.eq(person_id)))
|
||||||
.set((local_user::email.eq::<Option<String>>(None),))
|
.set((
|
||||||
|
local_user::email.eq::<Option<String>>(None),
|
||||||
|
local_user::validator_time.eq(naive_now()),
|
||||||
|
))
|
||||||
.execute(conn)?;
|
.execute(conn)?;
|
||||||
|
|
||||||
diesel::update(person.find(person_id))
|
diesel::update(person.find(person_id))
|
||||||
|
|
Loading…
Reference in a new issue