From 6fe46d7fc1fba5d37503d381fbfe6f572704c9d5 Mon Sep 17 00:00:00 2001 From: irina Date: Mon, 23 Dec 2024 13:19:06 +0800 Subject: [PATCH] fixing --- .../representers/vocabulary_request_representer.rb | 4 ++-- workers/job_reporter.rb | 3 +-- workers/shoryuken_dev.yml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/presentation/representers/vocabulary_request_representer.rb b/app/presentation/representers/vocabulary_request_representer.rb index 25e7e40..34089cb 100644 --- a/app/presentation/representers/vocabulary_request_representer.rb +++ b/app/presentation/representers/vocabulary_request_representer.rb @@ -10,8 +10,8 @@ module Representer class VocabularyRequest < Roar::Decorator include Roar::JSON - # property :song, extend: Representer::Song, class: OpenStruct - property :song, extend: Representer::Song, class: Struct + property :song, extend: Representer::Song, class: OpenStruct # rubocop:disable Style/OpenStructUse + # property :song, extend: Representer::Song, class: Struct property :id end end diff --git a/workers/job_reporter.rb b/workers/job_reporter.rb index 1d1c128..ae0ee3a 100644 --- a/workers/job_reporter.rb +++ b/workers/job_reporter.rb @@ -9,8 +9,7 @@ class JobReporter def initialize(request_json, config) voc_request = LyricLab::Representer::VocabularyRequest - .new(Struct.new) - # .new(OpenStruct.new) + .new(OpenStruct.new) # rubocop:disable Style/OpenStructUse .from_json(request_json) @song = voc_request.song diff --git a/workers/shoryuken_dev.yml b/workers/shoryuken_dev.yml index ed8bffd..919829b 100644 --- a/workers/shoryuken_dev.yml +++ b/workers/shoryuken_dev.yml @@ -1,4 +1,4 @@ queues: - - https://sqs.ap-northeast-1.amazonaws.com/440744214769/lyriclab-tristan-q - https://sqs.ap-northeast-1.amazonaws.com/440744214769/lyriclab-irina-q + - https://sqs.ap-northeast-1.amazonaws.com/440744214769/lyriclab-tristan-q - https://sqs.ap-northeast-1.amazonaws.com/440744214769/lyriclab-carrie-q \ No newline at end of file