teste mobile done!

This commit is contained in:
Eudes Inácio
2024-06-04 09:38:11 +01:00
parent 9265622e65
commit 9fcf116102
19 changed files with 468 additions and 281 deletions
@@ -25,6 +25,8 @@ export class AgendaDataRepositoryService {
try {
const result = await this.agendaDataService.getEvent(id).pipe(
map((response) => {
console.log('Response',response.data)
console.log('Output',EventMapper.toDomain(response.data))
return EventMapper.toDomain(response.data)
})
).toPromise()
@@ -91,7 +93,7 @@ export class AgendaDataRepositoryService {
type: this.utils.calendarTypeSeleted(eventData.Category),
category: this.utils.calendarCategorySeleted(eventData.CalendarName),
attendees: this.utils.attendeesAdded(eventData.Attendees),
attachments: documents,
attachments: this.utils.documentAdded(documents),
recurrence: {
frequency: 0,
occurrences: 0,
@@ -130,7 +132,7 @@ export class AgendaDataRepositoryService {
}
addEventAttachment(id,attachmentData) {
return this.agendaDataService.addEventAttachment(id,attachmentData);
return this.agendaDataService.addEventAttachment(id,{ attachments: this.utils.documentAdded(attachmentData) });
}
deleteEvent(eventId) {