ensure all pfps on startup
This commit is contained in:
parent
62d5e395fa
commit
815b621471
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,13 @@ module.exports = ({ db, config }) => {
|
|||
await db.put(user)
|
||||
}
|
||||
|
||||
;(async () => {
|
||||
const { rows } = await db.allDocs({ include_docs: true })
|
||||
for (const row of rows) {
|
||||
await ensurePfp(row.id)
|
||||
}
|
||||
})()
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
router.use('/', express.static(path.join(__dirname, '../static')))
|
||||
|
|
Loading…
Reference in a new issue