Remove Buffer() deprecation notice (#5942)
This commit is contained in:
committed by
Diamond Lewis
parent
f25a846c3e
commit
c4e016e5de
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user