'use strict';

import db from '../db/mongodb';
import es from '../db/elasticsearch';
import config from '../load-config';

db(config()).then(db => {
	db.collection('users')
	.find(query, {}, {
		limit: limit,
		sort: sort
	})
	.toArray()
	.then(users => {
		users.forEach(user => {
			es.index({
				index: 'misskey',
				type: 'user',
				id: user._id.toString(),
				body: {
					name: user.name,
					username: user.username
				}
			});
		});
	});
});

@@ -116,16 +116,90 @@
 nfig';%0A%0A
+// Init babel%0Arequire('babel-core/register');%0Arequire('babel-polyfill');%0A%0A
 db(confi

Fix bug