fix: changed dateselector and filter logic

This commit is contained in:
2025-06-14 20:03:13 +02:00
parent 4007dff254
commit 2a117262df
11 changed files with 72 additions and 69 deletions

View File

@@ -31,11 +31,11 @@ export class UpdatesService {
)
}
getMenu(dom: string) {
getMenu(dom: DateTime) {
const headers = {
'Content-Type': 'application/json',
}
return this.http.get<Menu>(environment.apiEndpoint + `/app/menu/${dom}`, {
return this.http.get<Menu>(environment.apiEndpoint + `/app/menu/${dom.toISODate()}`, {
headers: headers,
withCredentials: true,
})
@@ -71,9 +71,9 @@ export class UpdatesService {
})
}
getClean(date: string) {
getClean(date: DateTime) {
return this.http.get<{ grade: number; notes: CleanNote[]; tips: string }>(
environment.apiEndpoint + `/app/clean/${date}`,
environment.apiEndpoint + `/app/clean/${date.toISODate()}`,
{ withCredentials: true }
)
}