Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(sync): add email fallback for subscription check

Louis Beaumont94ce2b2c7abc
diff --git a/screenpipe-app-tauri/components/settings/sync-settings.tsx b/screenpipe-app-tauri/components/settings/sync-settings.tsx
index 4c813d6a3..157eae067 100644
--- a/screenpipe-app-tauri/components/settings/sync-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/sync-settings.tsx
@@ -621,7 +621,8 @@ export function SyncSettings() {
return false;
}
- const response = await fetch("https://screenpi.pe/api/cloud-sync/subscription?userId=" + userId, {
+ const email = settings.user?.email || "";
+ const response = await fetch(`https://screenpi.pe/api/cloud-sync/subscription?userId=${userId}&email=${encodeURIComponent(email)}`, {
headers: {
"Authorization": `Bearer ${token}`,
},