1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix subscription JSON response

This commit is contained in:
Hillel Coren 2016-11-15 10:39:35 +02:00
parent 3ec1b90649
commit 7e80f4de2e

View File

@ -38,6 +38,6 @@ class IntegrationController extends Controller
return Response::json('Failed to create subscription', 500);
}
return Response::json('{"id":'.$subscription->id.'}', 201);
return Response::json(['id' => $subscription->id], 201);
}
}