This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@flow | |
import MongoClient from 'mongodb'; | |
import { dbUrl, dbName } from '../config/dbconfig'; | |
async function clean(req: Object, reply: Object): Object { | |
const collections = ['posts', 'boards', 'users', 'comments']; | |
for (let collection of collections) { | |
let client; |
NewerOlder