Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 16, 2024
1 parent bdc0c83 commit 5de0a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/hotwire_spark/channels/monitoring_channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5de0a23

Please sign in to comment.