Skip to content

Commit a62f783

Browse files
committed
remove pointless validation
1 parent 7182f15 commit a62f783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ecto_watch/watcher_server.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ defmodule EctoWatch.WatcherServer do
180180
match?({_, :inserted}, identifier) && column == state.options.schema_definition.primary_key ->
181181
{:error, "Cannot subscribe to primary_key for inserted records"}
182182

183-
column && not MapSet.member?(state.identifier_columns, column) ->
184-
{:error, "Column #{column} is not an association column"}
183+
# column && not MapSet.member?(state.identifier_columns, column) ->
184+
# {:error, "Column #{column} is not an association column"}
185185

186186
column && column != state.options.schema_definition.primary_key &&
187187
column not in state.options.extra_columns ->

0 commit comments

Comments
 (0)