diff --git a/index.js b/index.js index 35a7167..b7eb69b 100644 --- a/index.js +++ b/index.js @@ -172,6 +172,9 @@ DB.prototype._del = function (key, opts, cb) { fields.refs.push.apply(fields.refs, v.refs) } }) + if (opts.value && opts.value.changeset) { + fields.v = {changeset: opts.value.changeset} + } cb(null, [ { type: 'del', key: key, links: links, fields: fields } ]) }) }