updated index definitions

This commit is contained in:
Andris Reinman 2017-06-13 13:39:03 +03:00
parent fea92ea175
commit 7ee875f7c7

12
imap.js
View file

@ -2140,7 +2140,17 @@ module.exports = done => {
};
let indexpos = 0;
let ensureIndexes = () => {
let ensureIndexes = err => {
if (err) {
server.logger.error(
{
tnx: 'mongo',
err
},
'Failed creating index',
err.message
);
}
if (indexpos >= setupIndexes.length) {
server.logger.info(
{