Delete the count cache row when a user is deleted (#1103)
This commit is contained in:
parent
5786155969
commit
5d26d3f47a
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue