Function
createNewIndex
(username, invalidUsernameTemplate, dateOfRemoval, supportEmail, currentIndex)
Source from the content-addressed store, hash-verified
| 48 | } |
| 49 | |
| 50 | function createNewIndex (username, invalidUsernameTemplate, dateOfRemoval, supportEmail, currentIndex) { |
| 51 | const newIndexSource = invalidUsernameTemplate({ |
| 52 | username, |
| 53 | dateOfRemoval, |
| 54 | supportEmail |
| 55 | }) |
| 56 | fs.writeFileSync(currentIndex, newIndexSource, 'utf-8') |
| 57 | } |
| 58 | |
| 59 | function createNewIndexAcl (userDirectory) { |
| 60 | const currentIndexAcl = path.join(userDirectory, 'index.html.acl') |
Tested by
no test coverage detected