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
|
@ -63,11 +63,6 @@ fixtures = {
|
|||
insertPostsAndTags: function insertPostsAndTags() {
|
||||
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) {
|
||||
|
@ -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