Skip to content

Commit

Permalink
uncomment history log
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspalsingh-aot committed Oct 21, 2024
1 parent ec641b4 commit 94a0d61
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions backend/sites/src/app/services/site/site.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 94a0d61

Please sign in to comment.