From 2ba91c70f320520d3cddc83a1a9aacc05281fb88 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Tue, 21 Nov 2023 08:43:50 -0600 Subject: [PATCH] [FIX] IsJetStreamEnabled delegate to JWT lib. --- account_jstieredlimits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_jstieredlimits.go b/account_jstieredlimits.go index 5a6126c..47c1b3a 100644 --- a/account_jstieredlimits.go +++ b/account_jstieredlimits.go @@ -51,7 +51,7 @@ func (a *accountJsTieredLimits) Delete(tier int8) (bool, error) { } func (a *accountJsTieredLimits) IsJetStreamEnabled() bool { - return a.data.Claim.Limits.JetStreamLimits.IsUnlimited() + return a.data.Claim.Limits.IsJSEnabled() } func (a *accountJsTieredLimits) getLimit(tier int8) (JetStreamLimits, error) {