Skip to content

Commit a4deeb4

Browse files
committed
added timeouts should be using DB_MAX_TIME_MESSAGES
1 parent f01c84c commit a4deeb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/api/messages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
884884
flags: true,
885885
verificationResults: true
886886
},
887-
maxTimeMS: consts.DB_MAX_TIME_USERS
887+
maxTimeMS: consts.DB_MAX_TIME_MESSAGES
888888
},
889889
paginatedField: order !== undefined ? 'idate' : '_id',
890890
sortAscending: order === 'asc' ? true : undefined
@@ -3400,7 +3400,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
34003400
thread: true,
34013401
flags: true
34023402
},
3403-
maxTimeMS: consts.DB_MAX_TIME_USERS
3403+
maxTimeMS: consts.DB_MAX_TIME_MESSAGES
34043404
},
34053405
paginatedField: '_id',
34063406
sortAscending

0 commit comments

Comments
 (0)