-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- several more fixes since the data streaming was introduced - fixes the zips downloads - fixes the subscriptions and free access not always showing - fixes subscription renew toggle now stays in the position you've changed it to
- Loading branch information
Showing
6 changed files
with
86 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,14 @@ export const load = async ({ locals: { getSubscriptions, getFreeAccess } }) => { | |
superValidate(zod(checkoutSchema)) | ||
]) | ||
|
||
const subscriptions = getSubscriptions() | ||
const freeAccess = getFreeAccess() | ||
|
||
return { | ||
subscriptionsform: promises[0], | ||
checkoutForm: promises[1], | ||
subscriptions: getSubscriptions(), | ||
freeAccess: getFreeAccess() | ||
subscriptions, | ||
freeAccess | ||
} | ||
} | ||
|
||
|
@@ -213,8 +216,9 @@ export const actions = { | |
} | ||
|
||
if (!profile.customer_id) { | ||
throw error( | ||
403, | ||
return setError( | ||
form, | ||
"", | ||
"You don't have a customer id. This should not be possible! Please contact [email protected]" | ||
) | ||
} | ||
|
@@ -268,6 +272,6 @@ export const actions = { | |
cancel_at_period_end: !subscription.cancel_at_period_end | ||
}) | ||
|
||
return | ||
return { form, subscription: subscriptionID } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters