summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service_web/controllers/v1/transaction_controller.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/matrix_app_service_web/controllers/v1/transaction_controller.ex')
-rw-r--r--lib/matrix_app_service_web/controllers/v1/transaction_controller.ex8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/matrix_app_service_web/controllers/v1/transaction_controller.ex b/lib/matrix_app_service_web/controllers/v1/transaction_controller.ex
index bbb0293..c2a47e3 100644
--- a/lib/matrix_app_service_web/controllers/v1/transaction_controller.ex
+++ b/lib/matrix_app_service_web/controllers/v1/transaction_controller.ex
@@ -28,7 +28,7 @@ defmodule MatrixAppServiceWeb.V1.TransactionController do
"unsigned" => unsigned,
"user_id" => user_id
}) do
- module = Application.fetch_env!(:matrix_app_service, :transaction_module)
+ adapter = Application.fetch_env!(:matrix_app_service, :transaction_adapter)
event = %MatrixAppService.Event{
age: age,
@@ -43,7 +43,7 @@ defmodule MatrixAppServiceWeb.V1.TransactionController do
user_id: user_id
}
- module.new_event(event)
+ adapter.new_event(event)
end
defp create_event(%{
@@ -57,7 +57,7 @@ defmodule MatrixAppServiceWeb.V1.TransactionController do
"unsigned" => unsigned,
"user_id" => user_id
}) do
- module = Application.fetch_env!(:matrix_app_service, :transaction_module)
+ adapter = Application.fetch_env!(:matrix_app_service, :transaction_adapter)
event = %MatrixAppService.Event{
age: age,
@@ -72,7 +72,7 @@ defmodule MatrixAppServiceWeb.V1.TransactionController do
user_id: user_id
}
- module.new_event(event)
+ adapter.new_event(event)
end
def create(conn, %{"events" => events}) do