feat: use recordingID

This commit is contained in:
karishmas6
2024-10-10 03:38:35 +05:30
parent 7551b725f3
commit cba7f29049

View File

@@ -108,7 +108,7 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => {
}, [runningRecordingName, sockets, ids, readyForRunHandler, debugMessageHandler]) }, [runningRecordingName, sockets, ids, readyForRunHandler, debugMessageHandler])
const handleScheduleRecording = (settings: ScheduleSettings) => { const handleScheduleRecording = (settings: ScheduleSettings) => {
scheduleStoredRecording(runningRecordingName, settings) scheduleStoredRecording(runningRecordingId, settings)
.then(({ message, runId }: ScheduleRunResponse) => { .then(({ message, runId }: ScheduleRunResponse) => {
if (message === 'success') { if (message === 'success') {
notify('success', `Recording ${runningRecordingName} scheduled successfully`); notify('success', `Recording ${runningRecordingName} scheduled successfully`);
@@ -118,6 +118,7 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => {
}); });
} }
// todo: use runningRecordingId here (first change in backend)
const handleIntegrateRecording = (settings: IntegrationSettings) => { const handleIntegrateRecording = (settings: IntegrationSettings) => {
handleUploadCredentials(runningRecordingName, settings.credentials, settings.spreadsheetId, settings.range) handleUploadCredentials(runningRecordingName, settings.credentials, settings.spreadsheetId, settings.range)
.then((response) => { .then((response) => {