add patch_number and queue_id to dim_match
ci / docker (push) Failing after 3m56s

This commit is contained in:
2024-06-22 20:00:02 +02:00
parent 56ba989ad8
commit 078682fd48
8 changed files with 47 additions and 7 deletions
@@ -58,6 +58,12 @@ defmodule Scrapper.Processor.MatchProcessor do
"#{decoded_match.info.gameVersion}"
)
LolAnalytics.Dimensions.Match.MatchRepo.get_or_create(%{
match_id: decoded_match.metadata.matchId,
patch_number: decoded_match.info.gameVersion,
queue_id: 420
})
_queue_id ->
Storage.MatchStorage.S3MatchStorage.store_match(match_id, raw_match, "matches")
end
@@ -79,7 +85,7 @@ defmodule Scrapper.Processor.MatchProcessor do
|> Enum.shuffle()
|> Enum.take(2)
|> Enum.each(fn participant_puuid ->
Scrapper.Queue.PlayerQueue.queue_puuid(participant_puuid)
Scrapper.Queue.PlayerQueue.enqueue_puuid(participant_puuid)
end)
end
@@ -52,7 +52,7 @@ defmodule Scrapper.Processor.PlayerProcessor do
{
matches
|> Enum.each(fn match_id ->
Scrapper.Queue.MatchQueue.queue_match(match_id)
Scrapper.Queue.MatchQueue.enqueue_match(match_id)
end)
}