summaryrefslogtreecommitdiffstats
path: root/atuin-server-postgres/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'atuin-server-postgres/src/lib.rs')
-rw-r--r--atuin-server-postgres/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/atuin-server-postgres/src/lib.rs b/atuin-server-postgres/src/lib.rs
index fe1363ac..3b001bbb 100644
--- a/atuin-server-postgres/src/lib.rs
+++ b/atuin-server-postgres/src/lib.rs
@@ -277,6 +277,12 @@ impl Database for Postgres {
.await
.map_err(fix_error)?;
+ sqlx::query("delete from total_history_count_user where user_id = $1")
+ .bind(u.id)
+ .execute(&self.pool)
+ .await
+ .map_err(fix_error)?;
+
Ok(())
}