feat(campaigns): return expected api response

This commit is contained in:
Luis Castro 2019-07-23 21:23:14 +02:00
parent df29d446ae
commit 28a0793377
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639

View file

@ -28,6 +28,6 @@ module CreatePeerToPeerCampaign
return { errors: campaign.errors.messages }.as_json unless campaign.errors.empty?
campaign.as_json
campaign.as_json['campaign']
end
end