WIP room server
This commit is contained in:
parent
8919fe3f14
commit
2d34f78a0b
2 changed files with 99 additions and 9 deletions
|
@ -31,6 +31,9 @@ defmodule MatrixServer.RoomServer do
|
|||
|> Multi.run(:power_levels_event, &Event.room_creation_power_levels/2)
|
||||
|> Multi.run(:name_event, &Event.room_creation_name/2)
|
||||
|> Multi.run(:topic_event, &Event.room_creation_topic/2)
|
||||
|> Multi.run(:temp, fn _, _ ->
|
||||
{:error, :lol}
|
||||
end)
|
||||
|> Repo.transaction()
|
||||
|
||||
{:reply, result, state}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue