Programming Phoenix LiveView: B12.0 Missing alias for send_update (page 281)

Hello all,

I’m really loving this book, I found a small error on page 281 if you do not alias the SurveyResultsLive it will give this error when the handle_info tries to fire the send_update.

Error:

[error] GenServer #PID<0.6761.0> terminating
** (ArgumentError) send_update failed (module SurveyResultsLive is not available)

Adding an Alias like this solved the problem:

alias PentoWeb.Admin.SurveyResultsLive

Thanks for the awesome book!