# collab: Send down new usage limits even when the user does not have any usage \(\#34217\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f4106ad404097f00975c9f9a797b2f726b7e1269

Requested commit: f4106ad404097f00975c9f9a797b2f726b7e1269

Commit: f4106ad404097f00975c9f9a797b2f726b7e1269

Tree: c70a21bcf88e110a14e7558be3910100399e2c87

Author: Marshall Bowers

Committer: GitHub

## Message

```
collab: Send down new usage limits even when the user does not have any usage (#34217)

This PR fixes an issue where the plan usage limits in Zed would not get
updated immediately after the plan has changed.

Previously we were only sending down the usage—which contains the
limits—if there was a usage record in the database. This would be absent
if the user had just changed their plan.

We now always send down the usage in order to update the limits on the
client side.

Release Notes:

- N/A

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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