Ignore empty object error acks ("{}") when put()ing

This commit is contained in:
Daniel Lugo 2021-09-19 12:11:56 -04:00
parent 1d67fb4f49
commit 92429ecb1e

View file

@ -232,7 +232,7 @@ const handleMsg = async msg => {
/** @type {Smith.GunMsgPut} */
const reply = {
ack: {
err: ack.err
err: typeof ack.err === 'string' ? ack.err : undefined
},
id: msg.id,
path: msg.path,