fix: `nextAgent` widget call sending an array of chars instead of `department` query (#30689)

pull/30563/head
Kevin Aleman 3 years ago committed by GitHub
parent a82d8c2bb0
commit d26a61c388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/livechat/src/lib/triggers.js

@ -34,7 +34,7 @@ const getAgent = (triggerAction) => {
let agent;
try {
agent = await Livechat.nextAgent(department);
agent = await Livechat.nextAgent({ department });
} catch (error) {
return reject(error);
}

Loading…
Cancel
Save