-
Notifications
You must be signed in to change notification settings - Fork 201
Add stripe billing logic #190
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
Changes from 22 commits
23f3c60
04991fd
fde2179
9665f14
33ae585
e7f8f51
3ad6c2d
0a79f7c
8d2c731
53dac38
6caed35
8ad6ba7
258585e
84e8ec2
0b4140f
875f9b8
193c7e0
e2c90b8
8929d05
a70c577
5a3eab2
e369925
b0cbcf0
d463748
4c0805c
0f43c00
cf97955
ea4c29d
87efbf7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -26,5 +26,5 @@ export const main = async (db: PrismaClient, context: AppContext) => { | |||||||||||||||||
| connectionManager.registerPollingCallback(); | ||||||||||||||||||
|
|
||||||||||||||||||
| const repoManager = new RepoManager(db, DEFAULT_SETTINGS, redis, context); | ||||||||||||||||||
| repoManager.blockingPollLoop(); | ||||||||||||||||||
| await repoManager.blockingPollLoop(); | ||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add error handling for the async poll loop. Converting to async/await is good, but consider adding error handling: - await repoManager.blockingPollLoop();
+ try {
+ await repoManager.blockingPollLoop();
+ } catch (error) {
+ logger.error('Poll loop failed');
+ console.error(error);
+ process.exit(1);
+ }📝 Committable suggestion
Suggested change
|
||||||||||||||||||
| } | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,6 @@ | |
| "typescript": "^5.7.3" | ||
| }, | ||
| "dependencies": { | ||
| "@prisma/client": "6.2.1" | ||
| "@prisma/client": "6.3.1" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "Org" ADD COLUMN "stripeCustomerId" TEXT; |
Uh oh!
There was an error while loading. Please reload this page.