slashdotdash / conduit

RealWorld example backend implementing the CQRS/ES pattern in Elixir and Phoenix
MIT License
355 stars 67 forks source link

updating username does not update authors table #7

Open prem-prakash opened 6 years ago

jodyalbritton commented 6 years ago

It does not appear that updating the profile does anything but return the params you pass it. There should be some example functionality of actually updating the profile/user and propagating changes in either direction.

def update_author_profile(%Author{} = author, attrs \\ %{}) do
    {:ok, author}
end

Am I wrong or does this just return the params?

slashdotdash commented 6 years ago

Sorry for the late reply, this is work in progress. It's as far as I've progressed with the example code until I've written the corresponding chapters in the book.

It will be implemented, eventually!

LucasBadico commented 5 years ago

For this the best solution would be a worker assigned to deal with this kind of changes... so it would no be rigth int time the change, but eventualy everone would be on same page.