Skip to content

Commit

Permalink
Fix form cached subscribe status
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ committed Dec 4, 2023
1 parent 2bc3194 commit a5c7ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}

Expand Down

0 comments on commit a5c7ed0

Please sign in to comment.