Ghost/core/server/api/canary/utils/serializers
Rishabh 413c1cc4ce Handled empty stripe price object in API
no refs

In case of Stripe disconnect, its possible that the product table still contains reference to monthly/price id while the object itself isn't present in the DB. In this scenario the stripe price returned is empty object instead of `null` , which then passes down empty object in the API that causes clients to fail if they just check existence of stripe price. The fix returns `null` value for monthly/yearly price in case it has no reference and is empty object.
2021-06-08 20:59:39 +05:30
..
input Added labs setting input validation 2021-06-08 02:18:17 +12:00
output Handled empty stripe price object in API 2021-06-08 20:59:39 +05:30
index.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30