Skip to content

Commit d6ae940

Browse files
committed
Fix: create correct endpoint with specified prefix.
1 parent 371f5c0 commit d6ae940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arangodb_ecto/utils.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule ArangoDB.Ecto.Utils do
66
config = repo.config
77
config = if prefix == nil,
88
do: config,
9-
else: Keyword.put(:database_name, prefix)
9+
else: Keyword.put(config, :database_name, prefix)
1010

1111
struct(Arangoex.Endpoint, config)
1212
end

0 commit comments

Comments
 (0)