@ipcom/asterisk-ari 0.0.142 → 0.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1498,7 +1498,7 @@ var Channels = class {
1498
1498
  */
1499
1499
  async get(id) {
1500
1500
  try {
1501
- if (id) {
1501
+ if (!id) {
1502
1502
  throw new Error("No channel ID associated with this instance");
1503
1503
  }
1504
1504
  const details = await this.baseClient.get(`/channels/${id}`);