Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): clear Drive quota cache on OAuth disconnect flows

Richie McIlroy8fdecfc42dcb
diff --git a/apps/web/app/api/desktop/[...route]/storage.ts b/apps/web/app/api/desktop/[...route]/storage.ts
index 864c5a08b..5f0f9d739 100644
--- a/apps/web/app/api/desktop/[...route]/storage.ts
+++ b/apps/web/app/api/desktop/[...route]/storage.ts
@@ -257,6 +257,7 @@ protectedApp.delete("/google-drive/disconnect", async (c) => {
googleDriveAccessTokenExpiresAt: null,
googleDriveTokenRefreshLeaseId: null,
googleDriveTokenRefreshLeaseExpiresAt: null,
+ googleDriveStorageQuotaCache: null,
})
.where(
and(
@@ -374,6 +375,7 @@ app.get("/google-drive/callback", async (c) => {
googleDriveAccessTokenExpiresAt: null,
googleDriveTokenRefreshLeaseId: null,
googleDriveTokenRefreshLeaseExpiresAt: null,
+ googleDriveStorageQuotaCache: null,
})
.where(eq(storageIntegrations.id, reusable.id));
return;