mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Fix TypeScript build errors in frontend
- Add explicit type parameter to fetchWrapper call in schedules.ts - Import QuestionRequest type in SessionDetail.tsx
This commit is contained in:
1 parent
f18bcbbf3e
commit
1e8b302de7
2 files changed
+3
-2
No files matched your search
@@ -27,8 +27,8 @@ export async function listRepoSchedules(repoId: number): Promise<{ jobs: Schedul
|
||||
}
|
||||
|
||||
export async function getScheduleCounts(): Promise<Map<number, ScheduleCount>> {
|
||||
const response = await fetchWrapper(`${API_BASE_URL}/api/schedules/all`)
|
||||
const jobs = response.jobs as ScheduleJobWithRepo[]
|
||||
const response = await fetchWrapper<{ jobs: ScheduleJobWithRepo[] }>(`${API_BASE_URL}/api/schedules/all`)
|
||||
const jobs = response.jobs
|
||||
const counts = new Map<number, ScheduleCount>()
|
||||
|
||||
jobs.forEach((job) => {
|
||||
|
||||
Reference in new issue
Block a user