MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / updateIndexFiles

Function updateIndexFiles

bin/lib/invalidUsernames.mjs:131–136  ·  view source on GitHub ↗
(usernames, accountManager, dateOfRemoval, supportEmail)

Source from the content-addressed store, hash-verified

129}
130
131function updateIndexFiles (usernames, accountManager, dateOfRemoval, supportEmail) {
132 const invalidUsernameFilePath = path.join(process.cwd(), 'default-views', 'account', 'invalid-username.hbs')
133 const source = fs.readFileSync(invalidUsernameFilePath, 'utf-8')
134 const invalidUsernameTemplate = Handlebars.compile(source)
135 usernames.forEach(username => backupIndexFile(username, accountManager, invalidUsernameTemplate, dateOfRemoval, supportEmail))
136}

Callers 1

notifyUsersFunction · 0.85

Calls 1

backupIndexFileFunction · 0.85

Tested by

no test coverage detected