Continue trimming frontend integration page and renaming variables

This commit is contained in:
Tuan Dang
2022-12-12 10:36:13 -05:00
parent 397c15d61e
commit c6c2cfaaa5
6 changed files with 94 additions and 94 deletions
+1 -2
View File
@@ -84,7 +84,6 @@ const handleOAuthExchangeHelper = async ({
}).save();
} catch (err) {
console.error('in', err);
Sentry.setUser(null);
Sentry.captureException(err);
throw new Error('Failed to handle OAuth2 code-token exchange')
@@ -184,7 +183,7 @@ const getIntegrationAuthAccessHelper = async ({ integrationAuthId }: { integrati
try {
const integrationAuth = await IntegrationAuth
.findById(integrationAuthId)
.select('+accessCiphertext +accessIV +accessTag');
.select('workspace integration +accessCiphertext +accessIV +accessTag +accessExpiresAt + refreshCiphertext');
if (!integrationAuth) throw new Error('Failed to find integration auth');