Обработка null при передаче BLOB на Сервер БД

This commit is contained in:
Mikhail Chechnev 2018-12-05 22:28:09 +03:00
parent 5b35c48e0a
commit 8592204fb3

View File

@ -373,12 +373,12 @@ class DBConnector extends EventEmitter {
try { try {
let res = await this.connector.setQueueMsg({ let res = await this.connector.setQueueMsg({
nQueueId: prms.nQueueId, nQueueId: prms.nQueueId,
blMsg: prms.blMsg, blMsg: prms.blMsg ? prms.blMsg : new Buffer(""),
connection: this.connection connection: this.connection
}); });
res = await this.connector.setQueueResp({ res = await this.connector.setQueueResp({
nQueueId: prms.nQueueId, nQueueId: prms.nQueueId,
blResp: prms.blResp, blResp: prms.blResp ? prms.blResp : new Buffer(""),
connection: this.connection connection: this.connection
}); });
//Валидируем полученный ответ //Валидируем полученный ответ