Fix form cached subscribe status
This commit is contained in:
parent
2bc319424c
commit
a5c7ed0d64
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue