Ghost/core/server
Fabien 'egg' O'Carroll 90a4d369db
Fixed imports for files missing the email_only key (#13284)
closes https://github.com/TryGhost/Team/issues/1024

Our importer would set the default value of all posts_meta keys to
`null`. This is an invalid value for the `email_only` key which only
accepts booleans.

Since we are already looping over the schema to create the default
values, we can use the `defaultTo` property in the schema to use the
intended default, and fall back to `null` if it doesn't exist.

We've used the `Reflect.has` function to determine if the `defaultTo`
key exists, as opposed to a truthy check, because it's possible that a
falsy value (e.g. false, in the case of email_only) can be used as the
default.
2021-09-06 11:51:42 +01:00
..
adapters Swapped to American English spellings 2021-07-27 12:15:19 +04:00
api Migrated schedules v2/v3 APIs to match refactor in canary 2021-09-04 07:49:11 +12:00
data Fixed imports for files missing the email_only key (#13284) 2021-09-06 11:51:42 +01:00
lib Removed unused internal request lib 2021-08-26 14:21:27 +02:00
models Fixed 'sent' status setting when publishing a post 2021-08-26 22:25:45 +04:00
public Added /email/ route to robots.txt 2021-08-10 13:45:53 +04:00
services Removed i18t dependency from post scheduling service 2021-09-04 07:49:11 +12:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Added Members bulk actions endpoint 2021-08-23 16:38:21 +02:00
analytics-events.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
ghost-server.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
notify.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
run-update-check.js Added protective code to update-check job 2021-06-29 14:02:16 +04:00
update-check.js Fixed critical alerts sending to admin users 2021-07-07 11:29:18 +04:00