WB2: fix TodayView type for getToday returning TodayResponseV11 (deadlines field)
This commit is contained in:
parent
d8967f29f0
commit
62b8af2ab8
2 changed files with 8 additions and 6 deletions
|
|
@ -24,7 +24,8 @@ import type {
|
|||
ScoreResponse,
|
||||
TailorCvResponse,
|
||||
TaskRun,
|
||||
TodayResponse
|
||||
TodayResponse,
|
||||
TodayResponseV11
|
||||
} from '@/types'
|
||||
|
||||
const API_BASE: string =
|
||||
|
|
@ -204,8 +205,8 @@ export function batchScore(applicationIds: string[]): Promise<BatchScoringRespon
|
|||
})
|
||||
}
|
||||
|
||||
export function getToday(): Promise<TodayResponse> {
|
||||
return request<TodayResponse>('/today')
|
||||
export function getToday(): Promise<TodayResponseV11> {
|
||||
return request<TodayResponseV11>('/today')
|
||||
}
|
||||
|
||||
export function interviewPrep(applicationId: string): Promise<InterviewPrepResponse> {
|
||||
|
|
@ -270,5 +271,6 @@ export type {
|
|||
ScoreResponse,
|
||||
TailorCvResponse,
|
||||
TaskRun,
|
||||
TodayResponse
|
||||
TodayResponse,
|
||||
TodayResponseV11
|
||||
}
|
||||
|
|
@ -4,12 +4,12 @@ import { useRouter } from 'vue-router'
|
|||
import { useToastStore } from '@/stores/toast'
|
||||
import * as api from '@/api'
|
||||
import CostDisplay from '@/components/CostDisplay.vue'
|
||||
import type { TodayResponse, TodayDeadline, EmailSuggestion, NotificationLogEntry, SuggestionClassification } from '@/types'
|
||||
import type { TodayResponseV11, TodayDeadline, EmailSuggestion, NotificationLogEntry, SuggestionClassification } from '@/types'
|
||||
|
||||
const toast = useToastStore()
|
||||
const router = useRouter()
|
||||
|
||||
const today = ref<(TodayResponse & { deadlines?: TodayDeadline[] }) | null>(null)
|
||||
const today = ref<TodayResponseV11 | null>(null)
|
||||
const loading = ref(true)
|
||||
const deadlines = ref<TodayDeadline[]>([])
|
||||
const suggestions = ref<EmailSuggestion[]>([])
|
||||
|
|
|
|||
Loading…
Reference in a new issue