Skip to content

Move all database, stripe, and merit operations into their own respective services folder - #464

Merged
rsproule merged 27 commits into
masterfrom
json/db-services
Sep 22, 2025
Merged

Move all database, stripe, and merit operations into their own respective services folder#464
rsproule merged 27 commits into
masterfrom
json/db-services

Conversation

@jasonhedman

@jasonhedman jasonhedman commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Final code cleanliness refactor. Isolates all external services into their own separate folders.

  • @/services/db - all database reads and writes. Imporing db outside of this folder will cause a lint error
  • @/services/stripe - all stripe operations (create link + webhook). Removed payment_intent.suceeded handler because the current one always errors and if it didnt error we would double credit. Since all payments happen thru checkouts we can rely strictly on the checkout success event.
  • @/services/merit - all usage of the Terminal SDK

Will drop comments in the file viewer for notable changes.

@railway-app

railway-app Bot commented Sep 22, 2025

Copy link
Copy Markdown

This PR was not deployed automatically as @jasonhedman does not have access to the Railway project.

In order to get automatic PR deploys, please add @jasonhedman to your team on Railway.

@vercel

vercel Bot commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
assistant-ui-template Ready Ready Preview Comment Sep 22, 2025 10:26pm
echo-control Ready Ready Preview Comment Sep 22, 2025 10:26pm
echo-next-boilerplate Ready Ready Preview Comment Sep 22, 2025 10:26pm
echo-next-image Ready Ready Preview Comment Sep 22, 2025 10:26pm
echo-next-sdk-example Ready Ready Preview Comment Sep 22, 2025 10:26pm
echo-vite-sdk-example Ready Ready Preview Comment Sep 22, 2025 10:26pm
next-chat-template Ready Ready Preview Comment Sep 22, 2025 10:26pm
react-boilerplate Ready Ready Preview Comment Sep 22, 2025 10:26pm
react-chat Ready Ready Preview Comment Sep 22, 2025 10:26pm
react-image Ready Ready Preview Comment Sep 22, 2025 10:26pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
component-registry Skipped Skipped Sep 22, 2025 10:26pm

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ignore lint for seeder scripts. Don't really care about cleanliness here. Same goes for the next few files

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

use types from TRPC

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same

@rsproule

Copy link
Copy Markdown
Contributor

can you just bump the TS sdk at the same time here?

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