remove old match repo
ci / docker (push) Failing after 3m58s

This commit is contained in:
2024-06-23 12:59:05 +02:00
parent 305b9237c8
commit e364b20b1b
5 changed files with 8 additions and 68 deletions
@@ -69,19 +69,6 @@ defmodule Scrapper.Consumer.MatchConsumer do
Storage.MatchStorage.S3MatchStorage.store_match(match_id, raw_match, "matches")
end
match = LolAnalytics.Match.MatchRepo.get_match(match_id)
case match do
nil ->
LolAnalytics.Match.MatchRepo.insert_match(match_id)
_ ->
LolAnalytics.Match.MatchRepo.update_match(match, %{
:processed => true,
:match_url => match_url
})
end
decoded_match.metadata.participants
# |> Enum.shuffle()
# |> Enum.take(2)
@@ -16,7 +16,7 @@ defmodule Scrapper.Queue.MatchQueue do
@spec enqueue_match(String.t()) :: any()
def enqueue_match(match_id) do
LolAnalytics.Match.MatchRepo.get_match(match_id)
LolAnalytics.Dimensions.Match.MatchRepo.get(match_id)
|> case do
nil -> GenServer.call(__MODULE__, {:enqueue_match, match_id})
_match -> :already_processed