mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
d177852d1f
commit
bd16c2216a
1 changed files with 5 additions and 5 deletions
|
@ -64,11 +64,6 @@ fixtures = {
|
|||
return Promise.map(DataGenerator.forKnex.tags, function (tag) {
|
||||
return models.Tag.add(tag, module.exports.context.internal);
|
||||
})
|
||||
.then(function () {
|
||||
return Promise.map(DataGenerator.forKnex.posts_meta, function (postMeta) {
|
||||
return models.PostsMeta.add(postMeta, module.exports.context.internal);
|
||||
});
|
||||
})
|
||||
.then(function () {
|
||||
return Promise.each(_.cloneDeep(DataGenerator.forKnex.posts), function (post) {
|
||||
let postTagRelations = _.filter(DataGenerator.forKnex.posts_tags, {post_id: post.id});
|
||||
|
@ -87,6 +82,11 @@ fixtures = {
|
|||
|
||||
return models.Post.add(post, module.exports.context.internal);
|
||||
});
|
||||
})
|
||||
.then(function () {
|
||||
return Promise.map(DataGenerator.forKnex.posts_meta, function (postMeta) {
|
||||
return models.PostsMeta.add(postMeta, module.exports.context.internal);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue