( exportData: WakatimeExportData, userId: string, jobId: string, )
| 1062 | }; |
| 1063 | |
| 1064 | export const queueWakatimeFileImport = ( |
| 1065 | exportData: WakatimeExportData, |
| 1066 | userId: string, |
| 1067 | jobId: string, |
| 1068 | ): string => { |
| 1069 | const job: QueueJob = { |
| 1070 | id: jobId, |
| 1071 | type: "wakatime-file", |
| 1072 | userId, |
| 1073 | data: { exportData, jobId }, |
| 1074 | createdAt: new Date(), |
| 1075 | }; |
| 1076 | return importQueue.addJob(job); |
| 1077 | }; |
| 1078 | |
| 1079 | export const queueWakApiImport = ( |
| 1080 | apiKey: string, |
no test coverage detected