From 10d40e03b0fc610f51515cea57f1296e814a2cb2 Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Wed, 7 Apr 2021 17:47:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Remove=20agent=20check=20from=20?= =?UTF-8?q?QueryEmitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes another agent check missed in https://github.com/share/sharedb/pull/457 --- lib/query-emitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/query-emitter.js b/lib/query-emitter.js index 9e1994eef..79877bc31 100644 --- a/lib/query-emitter.js +++ b/lib/query-emitter.js @@ -202,7 +202,7 @@ QueryEmitter.prototype.queryPoll = function(callback) { var inserted = getInserted(idsDiff); if (inserted.length) { var snapshotOptions = {}; - if (emitter.agent) snapshotOptions.agentCustom = emitter.agent.custom; + snapshotOptions.agentCustom = emitter.agent.custom; function _getSnapshotBulkCb(err, snapshotMap) { if (err) return emitter._finishPoll(err, callback, pending);