diff --git a/backend/sites/src/app/services/site/site.service.ts b/backend/sites/src/app/services/site/site.service.ts index 5317e39d..fa95b4ca 100644 --- a/backend/sites/src/app/services/site/site.service.ts +++ b/backend/sites/src/app/services/site/site.service.ts @@ -469,18 +469,18 @@ export class SiteService { ); } - // const historyLog: HistoryLog = { - // userId: userInfo ? userInfo.sub : '', - // content: inputDTO, - // id: null, - // whoCreated: userInfo ? userInfo.givenName : '', - // whenCreated: new Date(), - // whenUpdated: new Date(), - // whoUpdated: userInfo ? userInfo.givenName : '', - // siteId: inputDTO.siteId, - // }; - - // await transactionalEntityManager.save(HistoryLog, historyLog); + const historyLog: HistoryLog = { + userId: userInfo ? userInfo.sub : '', + content: inputDTO, + id: null, + whoCreated: userInfo ? userInfo.givenName : '', + whenCreated: new Date(), + whenUpdated: new Date(), + whoUpdated: userInfo ? userInfo.givenName : '', + siteId: inputDTO.siteId, + }; + + await transactionalEntityManager.save(HistoryLog, historyLog); return true; }