fix all day

This commit is contained in:
Peter Maquiran
2024-06-18 15:04:13 +01:00
parent f0d8af1f70
commit cb1e2ad753
4 changed files with 15 additions and 5 deletions
@@ -14,8 +14,8 @@ import { AgendaLocalDataSourceService } from './agenda-local-data-source.service
import { EEventFilterStatus } from './model/enums';
import { isHttpError } from '../../http.service';
import { TracingType } from '../../monitoring/opentelemetry/tracer';
import { APINODReturn, APIReturn } from '../../decorator/api-validate-schema.decorator';
import { EventListDataOutputDTOSchema, EventListOutputDTOSchema } from './model/eventListDTOOutput';
import { APINODReturn } from '../../decorator/api-validate-schema.decorator';
import { EventListDataOutputDTOSchema } from './model/eventListDTOOutput';
import { EventToApproveDataOutputDTOSchema } from './model/eventToApproveListOutputDTO';
import { EventOutputDTOSchema } from './model/eventDTOOutput';
import { SharedCalendarListDetectChanges } from './async/change/shareCalendarChangeDetector';
@@ -50,7 +50,7 @@ export class AgendaDataRepositoryService {
try {
const result = await this.agendaDataService.getEvent(id).pipe(
map((response) => {
EventMapper.toDomain(response)
APINODReturn(EventOutputDTOSchema, response, 'get/Events/${id}', tracing)
return EventMapper.toDomain(response)
})
).toPromise()