Repository navigation
Promote dev to main (upstream v2.25.1 + code-scanning fixes) #70
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 all commits
751ce66
d9bae16
1f7e1b6
49aa92a
5cd4de2
063ee50
28e7167
c3f39b9
76d6616
5fb2f53
328b34c
8edbc60
291b07b
e333f75
c8bf9d8
8202a15
4a6ba07
c145f0c
70911f8
5848ef2
0cf4596
277d362
5a1e92b
fa47229
9aa7c88
bb2e017
e70110f
163cfbf
9af1eb8
f10296a
fc5b4ca
4583ac5
6b102af
f66844f
e25dd93
3964536
2aae02f
28701a9
ce9cb27
a4bebec
185044d
1f5f24e
f65de34
36834cd
273c7b5
c9138d3
f28c252
d883bfa
96b7847
4e55a95
ac27b00
8c5f356
94a8891
8630c48
fc7f764
9e6b99c
78182ed
e55121d
b3b074a
1af2885
8809e45
256f2b4
2917384
5d8ce5a
2b4fcbe
8ad0df3
4913031
78558e9
ac65e20
86b3c3d
b95168f
b08bad8
169c66a
743b996
9bf96eb
f0113c7
2a2c85c
4990043
1e57cd3
5007164
f05a049
86ba0f4
fffe4fa
5cfdccc
1d4b75f
75cb2f8
53ea9c8
ec01d33
0807837
326719b
109e8d4
48aa7e2
c3743d9
afa30c6
6f79545
506d9a0
bf89e2e
22c0341
6eed47e
541c7a4
66d2101
05c9690
c45ce4a
0992c46
1396b21
e7b8126
4be38e1
dda966e
fd0480f
07745d1
80d527b
24b77c2
00ff699
3128e87
a194e3f
e756fa5
47175b5
a9cdda5
3f848cc
003a77e
adf1a8f
2361947
7b29d40
0969ce7
5ac6e10
3bd88ce
8f3c38a
4c5d42a
2e2d8ed
bc61335
0d486f7
d6f881a
6c50457
7db798f
91c91f6
d7eb12a
23a37cd
a445c39
a0be876
813f4d5
540a972
6114dc5
aa4172c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,7 +97,7 @@ export class UsersController { | |
| process.env.AGENT_MEDIA_SSO_KEY | ||
| ); | ||
|
|
||
| return { url: `https://agent-media.ai/sso/${token}` }; | ||
| return { url: `https://app.agent-media.ai/sso/${token}` }; | ||
| } | ||
|
|
||
| @Get('/self') | ||
|
|
@@ -319,9 +319,14 @@ export class UsersController { | |
|
|
||
| @Get('/organizations') | ||
| async getOrgs(@GetUserFromRequest() user: User) { | ||
| return (await this._orgService.getOrgsByUserId(user.id)).filter( | ||
| (f) => !f.users[0].disabled | ||
| ); | ||
| return (await this._orgService.getOrgsByUserId(user.id)) | ||
| .filter((f) => !f.users[0].disabled) | ||
|
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.
Author
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. Leaving this as is, and it was already answered on #69. Generated by Claude Code |
||
| .map((p) => ({ | ||
| id: p.id, | ||
| name: p.name, | ||
| users: p.users, | ||
| subscription: p.subscription, | ||
| })); | ||
| } | ||
|
|
||
| @Post('/organizations') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
setToCancelmethod inStripeServicereturns an object withcancelAt(camelCase), but here the code checksresult.cancel_at(snake_case). This mismatch causes the condition to always evaluate tofalse, preventing the cancellation email notification from being sent.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving this as is.
StripeService.setToCancelreturns{ id, cancel_at }in snake_case on all three paths: un-cancel, immediate cancel after a failed payment, and cancel at period end (stripe.service.ts). Soresult.cancel_atis the right key and the email is sent whenever a cancel is set. Switching tocancelAtwould stop the email.Generated by Claude Code