From 2c4d8b6fe16dc77708a9c9393418374320dd6a24 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 28 Jan 2023 00:23:06 -0800 Subject: [PATCH] Add source party to output --- app/blueprints/api/v1/party_blueprint.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/blueprints/api/v1/party_blueprint.rb b/app/blueprints/api/v1/party_blueprint.rb index 005bcb8..7424320 100644 --- a/app/blueprints/api/v1/party_blueprint.rb +++ b/app/blueprints/api/v1/party_blueprint.rb @@ -49,11 +49,6 @@ module Api association :user, blueprint: UserBlueprint, view: :minimal - - # TODO: This should probably be paginated - association :remixes, - blueprint: PartyBlueprint, - view: :collection end view :jobs do @@ -76,6 +71,15 @@ module Api association :accessory, blueprint: JobAccessoryBlueprint fields :description, :charge_attack, :button_count, :turn_count, :chain_count + + association :source_party, + blueprint: PartyBlueprint, + view: :minimal + + # TODO: This should probably be paginated + association :remixes, + blueprint: PartyBlueprint, + view: :collection end view :collection do