Unregister project from db when user disconnects or manually does so

This commit is contained in:
Antonio Scandurra 2022-06-21 10:37:34 +02:00
parent 7acebc4eb8
commit 95a629d200
2 changed files with 19 additions and 9 deletions

View file

@ -465,7 +465,7 @@ impl Db for PostgresDb {
"
UPDATE projects
SET unregistered = 't'
WHERE project_id = $1
WHERE id = $1
",
)
.bind(project_id)