File tree 4 files changed +2034
-1328
lines changed
4 files changed +2034
-1328
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ import { prisma } from "@dub/prisma";
12
12
import { waitUntil } from "@vercel/functions" ;
13
13
import { authActionClient } from "../safe-action" ;
14
14
15
- // TODO:
16
- // Save the ban reason
17
15
18
16
// Ban a partner
19
17
export const banPartnerAction = authActionClient
@@ -79,36 +77,15 @@ export const banPartnerAction = authActionClient
79
77
waitUntil (
80
78
( async ( ) => {
81
79
// Send email to partner
82
- const [ partner , workspaceUsers ] = await Promise . all ( [
83
- prisma . partner . findUniqueOrThrow ( {
84
- where : {
85
- id : partnerId ,
86
- } ,
87
- select : {
88
- email : true ,
89
- name : true ,
90
- } ,
91
- } ) ,
92
-
93
- prisma . projectUsers . findMany ( {
94
- where : {
95
- projectId : workspace . id ,
96
- role : "owner" ,
97
- user : {
98
- email : {
99
- not : null ,
100
- } ,
101
- } ,
102
- } ,
103
- include : {
104
- user : {
105
- select : {
106
- email : true ,
107
- } ,
108
- } ,
109
- } ,
110
- } ) ,
111
- ] ) ;
80
+ const partner = await prisma . partner . findUniqueOrThrow ( {
81
+ where : {
82
+ id : partnerId ,
83
+ } ,
84
+ select : {
85
+ email : true ,
86
+ name : true ,
87
+ } ,
88
+ } ) ;
112
89
113
90
if ( ! partner . email ) {
114
91
console . error ( "Partner has no email address." ) ;
Original file line number Diff line number Diff line change 17
17
},
18
18
"dependencies" : {
19
19
"@ai-sdk/anthropic" : " ^1.0.7" ,
20
- "@boxyhq/saml-jackson" : " 1.23.9 " ,
20
+ "@boxyhq/saml-jackson" : " 1.43.0 " ,
21
21
"@chronark/zod-bird" : " ^0.3.9" ,
22
22
"@dub/analytics" : " ^0.0.25" ,
23
23
"@dub/email" : " workspace:*" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export const SSOSignIn = () => {
13
13
const {
14
14
setClickedMethod,
15
15
clickedMethod,
16
+ authMethod,
16
17
setLastUsedAuthMethod,
17
18
setShowSSOOption,
18
19
showSSOOption,
@@ -44,7 +45,9 @@ export const SSOSignIn = () => {
44
45
>
45
46
{ showSSOOption && (
46
47
< div >
47
- < div className = "mb-4 mt-1 border-t border-neutral-300" />
48
+ { authMethod !== "saml" && (
49
+ < div className = "mb-4 mt-1 border-t border-neutral-300" />
50
+ ) }
48
51
< div className = "flex items-center space-x-2" >
49
52
< h2 className = "text-sm font-medium text-neutral-900" >
50
53
Workspace Slug
You can’t perform that action at this time.
0 commit comments