# fix\(usage\): preserve quotas with malformed reset metadata · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/324ae4ef4a0efdbc287f7dabb611119cc54944fa)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 324ae4ef4a0efdbc287f7dabb611119cc54944fa

Requested commit: 324ae4ef4a0efdbc287f7dabb611119cc54944fa

Commit: 324ae4ef4a0efdbc287f7dabb611119cc54944fa

Tree: 82224f29598c96612da2e116b47421549b2ecc2f

Author: Simone

Committer: Simone

## Message

```
fix(usage): preserve quotas with malformed reset metadata

Harden resetText against structured resetsAt values: only strings and
numbers reach the date parser, anything else degrades to no reset text
instead of throwing inside ToPrimitive and discarding the provider.

```

## Parents

- [0878ed51a95be26ea98c6592954c228fa75c5acd](https://git.cafe/lucenx/codexbar-plasma/commit/0878ed51a95be26ea98c6592954c228fa75c5acd?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/324ae4ef4a0efdbc287f7dabb611119cc54944fa?format=markdown)
