feat(campaigns): return expected api response
This commit is contained in:
parent
df29d446ae
commit
28a0793377
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue