Skip to content

Conversation

@Caranell
Copy link
Member

@Caranell Caranell commented Nov 14, 2025

I already updated auth backend to allow sending subscription status requests without the subscription type, it'll reduce number of calls we make to check if user has an active sub 3->1. Also refactored the subscription hook a bit

@Caranell Caranell requested review from mintdart and vrtnd November 14, 2025 18:04
}

if (apiSubscription?.subscription?.status !== 'active') {
if (subscriptionType !== 'api' && subscription?.status !== 'active') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will return false for llamafeed && active

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as it should have? 🤔 overage shouldn't be available to llamafeed subs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if subscription IS llamapay and is active this will return false and we'll proceed to enableOverageMutation.mutateAsync()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants