fix duplication events

This commit is contained in:
Peter Maquiran
2024-06-03 13:28:18 +01:00
parent f38b445bd4
commit 320e7c41b3
10 changed files with 99 additions and 32 deletions
@@ -1,6 +1,17 @@
import { EventToApproveDetails } from "src/app/models/entiry/agenda/eventToApproveDetails"
import { EventOutputDTO } from "../model/eventDTOOutput"
function getTextInsideParentheses(inputString) {
var startIndex = inputString.indexOf('(');
var endIndex = inputString.indexOf(')');
if (startIndex !== -1 && endIndex !== -1) {
return inputString.substring(startIndex + 1, endIndex);
} else {
return null;
}
}
export class EventToApproveDetailsMapper {
constructor() {}
@@ -63,7 +74,7 @@ export class EventToApproveDetailsMapper {
// "MDEmail": "evilarinho@gabinetedigital.local",
// "OriginatorComments": "",
"Status": "Active",
//"TimeZone": "",
"TimeZone": getTextInsideParentheses(new Date(dto.startDate)+ ''),
"Agenda": category ,
"EventType": "Reunião",
//"EventID": "",