bcgov / bc-emli-pin-mgmt-be

BC Virtual Home Energy Rating PIN Management System Backend
Apache License 2.0
1 stars 0 forks source link

BVPS-331 & BVPS-332: Fixing updatedBy, username and updatedAt in Audit Log #103

Closed hannah-macdonald1 closed 1 year ago

hannah-macdonald1 commented 1 year ago

This PR grabs token info to update the logs with username and name, as well as fixes the updatedAt date in the logs for create and recreate. Note that this currently does not get token info in the expire endpoint, as that may need a significant overhaul / removal regardless.

Please run npm run db:migrate to obtain the necessary db changes for this to work.