Remove Buffer() deprecation notice (#5942)

This commit is contained in:
Antonio Davi Macedo Coelho de Castro
2019-08-18 23:22:44 -07:00
committed by Diamond Lewis
parent f25a846c3e
commit c4e016e5de
2 changed files with 3 additions and 3 deletions

View File

@@ -1544,7 +1544,7 @@ var BytesCoder = {
},
JSONToDatabase(json) {
return new mongodb.Binary(new Buffer(json.base64, 'base64'));
return new mongodb.Binary(Buffer.from(json.base64, 'base64'));
},
isValidJSON(value) {