From 5de0a2373573c27da7180773119ef3a3a1c5301b Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 16 Dec 2024 01:49:43 +0100 Subject: [PATCH] Rename --- app/javascript/hotwire_spark/channels/monitoring_channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/hotwire_spark/channels/monitoring_channel.js b/app/javascript/hotwire_spark/channels/monitoring_channel.js index 1bcc6cff..5f72f174 100644 --- a/app/javascript/hotwire_spark/channels/monitoring_channel.js +++ b/app/javascript/hotwire_spark/channels/monitoring_channel.js @@ -11,13 +11,13 @@ consumer.subscriptions.create({ channel: "HotwireSpark::Channel" }, { async received(message) { try { - await this.dispatchMessage(message) + await this.dispatch(message) } catch(error) { console.log(`Error on ${message.action}`, error) } }, - dispatchMessage({ action, path }) { + dispatch({ action, path }) { const fileName = assetNameFromPath(path) switch(action) {