Skip to content

Commit

Permalink
Merge pull request #436 from internxt/fix/log-update-backup-device-pa…
Browse files Browse the repository at this point in the history
…yload

[_]:(fix) Add log to view device update payload for backups
  • Loading branch information
sg-gs authored Apr 17, 2024
2 parents da5ade5 + 801e4a8 commit c413050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/routes/backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module.exports = (Router, Service) => {

Router.patch('/backup/deviceAsFolder/:id', passportAuth, async (req, res) => {
const expectedProperties = ['deviceName'];
logger.info('[BACKUP/DEVICEASFOLDER/:ID]: Received body payload %s', JSON.stringify(req.body));
const bodyFiltered = Object.keys(req.body)
.filter((key) => expectedProperties.includes(key))
.reduce((obj, key) => {
Expand Down

0 comments on commit c413050

Please sign in to comment.