fix: client.add not adding buffers properly

Fixed while getting AD thumbnailPhoto to work.
This commit is contained in:
John Johnston 2021-07-29 08:58:08 -07:00
parent 91de94d1a6
commit 3e3fa4ba12
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,8 @@ Client.prototype.add = function add (name, entry, controls, callback) {
save[k].forEach(function (v) {
attr.addValue(v.toString())
})
} else if (Buffer.isBuffer(save[k])) {
attr.addValue(save[k]);
} else {
attr.addValue(save[k].toString())
}