# Fix error when deleting rooms containing projects on refresh · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bbeb33bc7e88a16aee9fa011ff05c1687a1b0a0b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bbeb33bc7e88a16aee9fa011ff05c1687a1b0a0b

Requested commit: bbeb33bc7e88a16aee9fa011ff05c1687a1b0a0b

Commit: bbeb33bc7e88a16aee9fa011ff05c1687a1b0a0b

Tree: a43a93ec07c30797b05c66b3ee3c44d65e01d9b4

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix error when deleting rooms containing projects on refresh

A foreign key violation was causing the server to never delete stale
rooms during `Database::refresh_room` due to having one or more project
records referencing the room.

```

## Parents

- [e74db2d180d4ff0f356744bda3bc7b437251b84f](https://git.cafe/gitcafe/zed/commit/e74db2d180d4ff0f356744bda3bc7b437251b84f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bbeb33bc7e88a16aee9fa011ff05c1687a1b0a0b?format=markdown)
