diff --git a/src/electron/electron/ipc/IpcHandler.ts b/src/electron/electron/ipc/IpcHandler.ts index f2673030..a9749e9d 100644 --- a/src/electron/electron/ipc/IpcHandler.ts +++ b/src/electron/electron/ipc/IpcHandler.ts @@ -55,7 +55,7 @@ export class IpcHandler { } private async createExperienceSample( - promptedAt: number, + promptedAt: Date, question: string, responseOptions: string, scale: number, diff --git a/src/electron/electron/main/services/ExperienceSamplingService.ts b/src/electron/electron/main/services/ExperienceSamplingService.ts index e27c2f1b..d14bed53 100644 --- a/src/electron/electron/main/services/ExperienceSamplingService.ts +++ b/src/electron/electron/main/services/ExperienceSamplingService.ts @@ -5,7 +5,7 @@ const LOG = getLogger('ExperienceSamplingService'); export class ExperienceSamplingService { public async createExperienceSample( - promptedAt: number, + promptedAt: Date, question: string, responseOptions: string, scale: number, diff --git a/src/electron/src/utils/Commands.ts b/src/electron/src/utils/Commands.ts index f25cd963..d7277a7c 100644 --- a/src/electron/src/utils/Commands.ts +++ b/src/electron/src/utils/Commands.ts @@ -2,7 +2,7 @@ import StudyInfoDto from '../../shared/dto/StudyInfoDto'; type Commands = { createExperienceSample: ( - promptedAt: number, + promptedAt: Date, question: string, responseOptions: string, scale: number, diff --git a/src/electron/src/views/ExperienceSamplingView.vue b/src/electron/src/views/ExperienceSamplingView.vue index ccbc9b2a..2f776743 100644 --- a/src/electron/src/views/ExperienceSamplingView.vue +++ b/src/electron/src/views/ExperienceSamplingView.vue @@ -22,7 +22,7 @@ async function createExperienceSample(value: number) { await Promise.all([ typedIpcRenderer.invoke( 'createExperienceSample', - promptedAt.getTime(), + promptedAt, question, questionLabels.join(', '), esConfig.scale, @@ -42,7 +42,7 @@ async function skipExperienceSample() { await Promise.all([ typedIpcRenderer.invoke( 'createExperienceSample', - promptedAt.getTime(), + promptedAt, question, questionLabels.join(', '), esConfig.scale,