File tree 3 files changed +6
-0
lines changed
app/(app)/team/[team_slug]/[project_slug]/connect/universal-bridge/settings
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,14 @@ export type Fee = {
100
100
101
101
export async function getFees ( props : {
102
102
clientId : string ;
103
+ teamId : string ;
103
104
} ) {
104
105
const authToken = await getAuthToken ( ) ;
105
106
const res = await fetch ( `${ UB_BASE_URL } /v1/developer/fees` , {
106
107
method : "GET" ,
107
108
headers : {
108
109
"Content-Type" : "application/json" ,
110
+ "x-team-id" : props . teamId ,
109
111
"x-client-id-override" : props . clientId ,
110
112
Authorization : `Bearer ${ authToken } ` ,
111
113
} ,
@@ -122,6 +124,7 @@ export async function getFees(props: {
122
124
123
125
export async function updateFee ( props : {
124
126
clientId : string ;
127
+ teamId : string ;
125
128
feeRecipient : string ;
126
129
feeBps : number ;
127
130
} ) {
@@ -131,6 +134,7 @@ export async function updateFee(props: {
131
134
headers : {
132
135
"Content-Type" : "application/json" ,
133
136
"x-client-id-override" : props . clientId ,
137
+ "x-team-id" : props . teamId ,
134
138
Authorization : `Bearer ${ authToken } ` ,
135
139
} ,
136
140
body : JSON . stringify ( {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default async function Page(props: {
27
27
28
28
let fees = await getFees ( {
29
29
clientId : project . publishableKey ,
30
+ teamId : team . id ,
30
31
} ) . catch ( ( ) => {
31
32
return {
32
33
feeRecipient : "" ,
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export const PayConfig: React.FC<PayConfigProps> = (props) => {
49
49
} ) => {
50
50
await updateFee ( {
51
51
clientId : props . project . publishableKey ,
52
+ teamId : props . teamId ,
52
53
feeRecipient : values . payoutAddress ,
53
54
feeBps : values . developerFeeBPS ,
54
55
} ) ;
You can’t perform that action at this time.
0 commit comments