Fix form cached subscribe status

This commit is contained in:
Julien Nahum 2023-12-04 10:43:24 +01:00
parent 2bc319424c
commit a5c7ed0d64
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ class Form extends Model implements CachableAttributes
public function getIsProAttribute()
{
return $this->remember('is_pro', 15 * 60, function (): bool {
return optional($this->workspace)->is_pro;
return $this->remember('is_pro', 15 * 60, function (): ?bool {
return optional($this->workspace)->is_pro === true;
});
}