Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: createOrGetCustomer() in middleware state #28

Merged
merged 1 commit into from
Apr 1, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Apr 1, 2023

Previously, createOrGetCustomer() was called every time a /dashboard/** request was made.

Now, createOrGetCustomer() to the /dashboard middleware context so it can be called only when needed.

Ref:

@iuioiua iuioiua merged commit 9913f90 into main Apr 1, 2023
@iuioiua iuioiua deleted the createOrGetCustomer-in-middleware branch April 1, 2023 00:09
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.

1 participant