mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
some fix
This commit is contained in:
@@ -132,6 +132,8 @@ export class AgendaDataRepositoryService {
|
||||
}
|
||||
|
||||
addEventAttachment(id,attachmentData) {
|
||||
console.log(attachmentData)
|
||||
console.log('post attachment',this.utils.documentAdded(attachmentData))
|
||||
return this.agendaDataService.addEventAttachment(id,{ attachments: this.utils.documentAdded(attachmentData) });
|
||||
}
|
||||
|
||||
|
||||
@@ -62,14 +62,26 @@ export class Utils {
|
||||
|
||||
documentAdded(documents:any[]) {
|
||||
console.log('added doc create event',documents)
|
||||
return documents.map((e) => {
|
||||
let listupdate = []
|
||||
documents.forEach(element => {
|
||||
let object = {
|
||||
docId: element.docId,
|
||||
sourceName: element.subject || element.sourceNames,
|
||||
description: "",
|
||||
applicationId: element.applicationId
|
||||
}
|
||||
|
||||
listupdate.push(object)
|
||||
});
|
||||
return listupdate
|
||||
/* return documents.map((e) => {
|
||||
return {
|
||||
docId: e.docId,
|
||||
sourceName: e.subject || e.sourceNames,
|
||||
description: "",
|
||||
applicationId: e.applicationId
|
||||
};
|
||||
});
|
||||
}); */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user