Compare commits
1 Commits
1bf127d39b
...
d72e07cb46
Author | SHA1 | Date |
---|---|---|
Shadowfacts | d72e07cb46 |
|
@ -3,6 +3,12 @@ defmodule Frenzy.Pipeline.FilterStage do
|
||||||
alias Frenzy.Pipeline.Stage
|
alias Frenzy.Pipeline.Stage
|
||||||
@behaviour Stage
|
@behaviour Stage
|
||||||
|
|
||||||
|
# @impl Stage
|
||||||
|
# def apply(opts, item_params) do
|
||||||
|
# matches = matches?(opts, item_params)
|
||||||
|
#
|
||||||
|
# end
|
||||||
|
|
||||||
@impl Stage
|
@impl Stage
|
||||||
def apply(%{"mode" => mode, "score" => score, "rules" => rules}, item_params)
|
def apply(%{"mode" => mode, "score" => score, "rules" => rules}, item_params)
|
||||||
when is_binary(mode) and is_integer(score) and is_list(rules) do
|
when is_binary(mode) and is_integer(score) and is_list(rules) do
|
||||||
|
|
Loading…
Reference in New Issue