diff --git a/atuin-server-postgres/src/lib.rs b/atuin-server-postgres/src/lib.rs index fe1363a..3b001bb 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(()) }