0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/models
Naz 2c1ae2e9af 🐛 Fixed a 500 error for incorrect fields parameter in API
refs 8a1fd1f57f
refs 5584430ddc

- The change to async/await in the original commit 558443 was causing problems in downstream dependencies (create-error package) where it was loosing a context of "this". It's not a direct dependency so I didn't go yak shaving into where exacly the context is lost.
- The fix to keep a correct context of "this" was sticking to an existing pattern using regular function returning promises. Once we need to redo them into async/await we can investigate if there's a way around create-error's context prolbem
2021-07-06 11:58:37 +04:00
..
base 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-06 11:58:37 +04:00
relations Improved single author deprecated notices 2021-05-04 17:11:12 +01:00
action.js
api-key.js Extracted Bookshelf actions code to plugin 2021-06-17 12:04:38 +01:00
author.js
benefit.js Added Benefit model 2021-06-29 16:53:15 +01:00
email-batch.js
email-recipient.js
email.js Added ability to send a newsletter to members with a certain label or product (#12932) 2021-05-07 11:56:41 +01:00
index.js Added Benefit model 2021-06-29 16:53:15 +01:00
integration.js
invite.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
label.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
member-email-change-event.js
member-login-event.js
member-paid-subscription-event.js
member-payment-event.js
member-status-event.js Replaced members 'comped' status with 'paid' 2021-05-19 18:49:18 +01:00
member-stripe-customer.js
member-subscribe-event.js
member.js
mobiledoc-revision.js
permission.js
post.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
posts-meta.js
product.js Added benefits relation to Product model 2021-06-29 16:53:15 +01:00
role.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
session.js 🔒 Added a "reset all passwords" feature (#13005) 2021-06-23 14:54:28 +02:00
settings.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00
single-use-token.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
snippet.js Fixed no-restricted-require warning for core/shared/url-utils.js 2021-05-25 21:13:57 +01:00
stripe-customer-subscription.js 🐛 Fixed members list not loading (#12930) 2021-05-26 19:52:42 +05:30
stripe-price.js
stripe-product.js
tag-public.js
tag.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
user.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00
webhook.js