mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-05 07:32:26 +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 indexpos = 0;
|
||||||
let ensureIndexes = () => {
|
let ensureIndexes = err => {
|
||||||
|
if (err) {
|
||||||
|
server.logger.error(
|
||||||
|
{
|
||||||
|
tnx: 'mongo',
|
||||||
|
err
|
||||||
|
},
|
||||||
|
'Failed creating index',
|
||||||
|
err.message
|
||||||
|
);
|
||||||
|
}
|
||||||
if (indexpos >= setupIndexes.length) {
|
if (indexpos >= setupIndexes.length) {
|
||||||
server.logger.info(
|
server.logger.info(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue