mirror of
https://github.com/atuinsh/atuin.git
synced 2025-02-16 18:32:05 +01:00
Delete the count cache row when a user is deleted (#1103)
This commit is contained in:
parent
5786155969
commit
5d26d3f47a
@ -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(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user