mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-31 04:33:09 +08:00
updated index definitions
This commit is contained in:
parent
fea92ea175
commit
7ee875f7c7
1 changed files with 11 additions and 1 deletions
12
imap.js
12
imap.js
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue