mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
Restore integrations upgrade attach call
This commit is contained in:
parent
f0c79872f6
commit
318c85cfab
2 changed files with 1 additions and 7 deletions
|
|
@ -92,7 +92,7 @@ export default function RootLayout({
|
|||
process.env.NEXT_PUBLIC_BACKEND_URL ??
|
||||
"https://api.supermemory.ai"
|
||||
}
|
||||
useBetterAuth={true}
|
||||
includeCredentials={true}
|
||||
headers={{ "X-App-Source": "nova" }}
|
||||
>
|
||||
<QueryProvider>
|
||||
|
|
|
|||
|
|
@ -2427,12 +2427,6 @@ export function IntegrationsView({
|
|||
|
||||
const handleUpgrade = async (planId?: unknown) => {
|
||||
const checkoutPlanId = planId === "api_max" ? "api_max" : "api_pro"
|
||||
if (publicMode || !org) {
|
||||
const loginUrl = new URL("/login", window.location.origin)
|
||||
loginUrl.searchParams.set("redirect", window.location.href)
|
||||
window.location.assign(loginUrl.toString())
|
||||
return
|
||||
}
|
||||
try {
|
||||
const result = await autumn.attach({
|
||||
planId: checkoutPlanId,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue