Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Om dokumentet er kryptert, fjern dokumentinnholdet fra dokumentet
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsAnd committed Jan 26, 2021
1 parent 198c9b1 commit 3cf2ca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/repack-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
*/
module.exports = (document) => {
if (document.student) delete document.student.personalIdNumber
if (document.isEncrypted) document.content = {}
return document
}

0 comments on commit 3cf2ca5

Please # to comment.