mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-01 05:06:44 +08:00
do not use fields
This commit is contained in:
parent
208ebb90e5
commit
224c76f869
6 changed files with 8 additions and 8 deletions
|
@ -203,7 +203,7 @@ module.exports = (db, server) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ module.exports = (db, server, userHandler) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ module.exports = (db, server) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ module.exports = (db, server) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
|
|
@ -467,7 +467,7 @@ module.exports = (db, server, messageHandler) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
@ -920,7 +920,7 @@ module.exports = (db, server, messageHandler) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
@ -2692,7 +2692,7 @@ module.exports = (db, server, messageHandler) => {
|
|||
|
||||
if (pageNext) {
|
||||
opts.next = pageNext;
|
||||
} else if (page > 1 && pagePrevious) {
|
||||
} else if ((!page || page > 1) && pagePrevious) {
|
||||
opts.previous = pagePrevious;
|
||||
}
|
||||
|
||||
|
|
|
@ -432,7 +432,7 @@ class MessageHandler {
|
|||
let queryOpts = {};
|
||||
if (options.skipExisting) {
|
||||
// no need to load extra data when we only need to know the basics
|
||||
queryOpts.fields = {
|
||||
queryOpts.projection = {
|
||||
_id: true,
|
||||
uid: true,
|
||||
outbound: true,
|
||||
|
|
Loading…
Reference in a new issue