Ghost/core/server/models
kirrg001 d209a4d013 🐛 Fixed importer bug: can't resolve authors relation
closes #9547

- you setup a blog with the following owner:
  - email: test@ghost.org
  - name: test
  - slug: test
- now you import a JSON db file, which holds the exact same owner
  - this owner won't be imported, because it's a duplicate
  - but the slug is different (!)
- the importer tries to find a matching existing user, but won't find anything
- the importer then send an empty authors array `post.authors=[]` into the model layer
- this is not allowed -> this would mean, you are actively trying to unset all authors
2018-04-10 01:10:06 +02:00
..
base Optimised emitChange for destroyed resources 2018-04-06 19:10:59 +02:00
plugins Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
relations 🐛 Fixed importer bug: can't resolve authors relation 2018-04-10 01:10:06 +02:00
accesstoken.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
index.js Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
invite.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
settings.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
subscriber.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
tag.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
user.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
webhook.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00