Add appointment to watchext

This commit is contained in:
daru
2022-05-28 14:52:32 +02:00
parent 5b029ee835
commit 97f94e5e2f
3 changed files with 33 additions and 5 deletions

12
ober.go
View File

@@ -316,10 +316,16 @@ func WatchExtendedGet(ctx *fasthttp.RequestCtx) {
addErrorToCtx(ctx, err)
return
}
apps, err := SearchAppointments(a.Anime)
if err != nil {
addErrorToCtx(ctx, err)
return
}
animeUsersExtended = append(animeUsersExtended, AnimeUserExtended{
Anime: a.Anime,
Users: a.Users,
Data: *data,
Anime: a.Anime,
Users: a.Users,
Data: *data,
Appointments: apps,
})
}