mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-04 20:03:11 +08:00
do not use deprecated findAndModify
This commit is contained in:
parent
0752e712a7
commit
c9c819b9e1
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ function removeMessage(id, callback) {
|
|||
}
|
||||
|
||||
function setMeta(id, data, callback) {
|
||||
db.senderDb.collection(config.sender.gfs + '.files').findAndModify({
|
||||
db.senderDb.collection(config.sender.gfs + '.files').findOneAndUpdate({
|
||||
filename: 'message ' + id
|
||||
}, false, {
|
||||
$set: {
|
||||
|
|
Loading…
Reference in a new issue