diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index 70e3db8d..a5baf369 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -20,6 +20,7 @@ interface RobotAttributes { recording_meta: RobotMeta; recording: RobotWorkflow; google_sheets_email?: string | null; + google_sheets_name?: string | null; google_sheet_id?: string | null; google_access_token?: string | null; google_refresh_token?: string | null; @@ -32,6 +33,7 @@ class Robot extends Model implements R public recording_meta!: RobotMeta; public recording!: RobotWorkflow; public google_sheets_email!: string | null; + public google_sheets_name?: string | null; public google_sheet_id?: string | null; public google_access_token!: string | null; public google_refresh_token!: string | null; @@ -56,6 +58,10 @@ Robot.init( type: DataTypes.STRING, allowNull: true, }, + google_sheets_name: { + type: DataTypes.STRING, + allowNull: true, + }, google_sheet_id: { type: DataTypes.STRING, allowNull: true, diff --git a/src/components/molecules/IntegrationSettings.tsx b/src/components/molecules/IntegrationSettings.tsx index 6a41191d..34c4911c 100644 --- a/src/components/molecules/IntegrationSettings.tsx +++ b/src/components/molecules/IntegrationSettings.tsx @@ -93,7 +93,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I if (!recordingId) return; const recording = await getStoredRecording(recordingId); if (recording) { - setGoogleSheetsEmail(recording.google_sheets_email); // Assuming this is how the email is stored + setGoogleSheetsEmail(recording.google_sheets_email); } }; @@ -113,7 +113,6 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I }}> Google Sheets Integration - {/* If Google Sheets email is empty, show Google OAuth button */} {!googleSheetsEmail ? ( - {/* Display selected spreadsheet name */} {settings.spreadsheetId && ( Selected Spreadsheet ID: {settings.spreadsheetId}