The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
address coderabbit feedbacks
Kiran K17d795a7247d
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/security/saml.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/security/saml.tsxindex 3db230adb1..9ab7dc6ba6 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/security/saml.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/security/saml.tsx@@ -31,7 +31,7 @@ export function SAML() {isLoading,update,} = useOptimisticUpdate<{- ssoEnforcedAt: Date | null;+ ssoEnforcedAt: string | null;}>(`/api/workspaces/${workspaceId}`, {loading: "Saving SAML SSO login setting...",success: "SAML SSO login setting has been updated successfully.",@@ -103,7 +103,7 @@ export function SAML() {};await update(updateWorkspace, {- ssoEnforcedAt: enforceSAML ? new Date() : null,+ ssoEnforcedAt: enforceSAML ? new Date().toISOString() : null,});};diff --git a/apps/web/scripts/migrations/backfill-saml-sso.ts b/apps/web/scripts/migrations/backfill-saml-sso.tsindex f5b04eba0f..37def6e5ea 100644--- a/apps/web/scripts/migrations/backfill-saml-sso.ts+++ b/apps/web/scripts/migrations/backfill-saml-sso.ts@@ -4,6 +4,7 @@ import "dotenv-flow/config";async function main() {const workspaces = await prisma.project.findMany({where: {+ ssoEmailDomain: null,plan: "enterprise",},select: {@@ -11,6 +12,13 @@ async function main() {name: true,ssoEmailDomain: true,users: {+ where: {+ role: "owner",+ },+ orderBy: {+ createdAt: "asc",+ },+ take: 1,select: {user: {select: {