We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72b836 commit 93b991eCopy full SHA for 93b991e
crates/tasks/src/user.rs
@@ -42,14 +42,21 @@ impl RunnableJob for DeactivateUserJob {
42
.context("User not found")
43
.map_err(JobError::fail)?;
44
45
- // Let's first lock the user
+ // Let's first lock & deactivate the user
46
let user = repo
47
.user()
48
.lock(&clock, user)
49
.await
50
.context("Failed to lock user")
51
.map_err(JobError::retry)?;
52
53
+ let user = repo
54
+ .user()
55
+ .deactivate(&clock, user)
56
+ .await
57
+ .context("Failed to deactivate user")
58
+ .map_err(JobError::retry)?;
59
+
60
// Kill all sessions for the user
61
let n = repo
62
.browser_session()
0 commit comments