add message group id for post archives

This commit is contained in:
r888888888 2017-06-13 16:34:40 -07:00
parent 40d24278cf
commit efe5e0e95e
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class PoolArchive < ActiveRecord::Base
category: pool.category
}
msg = "add pool version\n#{json.to_json}"
sqs_service.send_message(msg)
sqs_service.send_message(msg, message_group_id: "#{pool.id}")
end
def build_diff(other = nil)

View File

@ -74,7 +74,7 @@ class PostArchive < ActiveRecord::Base
"tags" => post.tag_string
}
msg = "add post version\n#{json.to_json}"
sqs_service.send_message(msg)
sqs_service.send_message(msg, message_group_id: "#{post.id}")
end
end
end