Skip to content

Commit

Permalink
🎉 include featured image in archieML migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Jun 1, 2023
1 parent d893d45 commit 65bcf25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/migrateWpPostsToArchieMl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const migrate = async (): Promise<void> => {
"authors",
"excerpt",
"created_at_in_wordpress",
"updated_at"
"updated_at",
"featured_image"
).from(db.knexTable(Post.postsTable)) //.where("id", "=", "22821"))

for (const post of posts) {
Expand Down Expand Up @@ -87,6 +88,7 @@ const migrate = async (): Promise<void> => {
title: post.title,
subtitle: post.excerpt,
excerpt: post.excerpt,
"featured-image": post.featured_image,
authors: sortBy(authors, ["order"]).map(
(author) => author.author
),
Expand Down

0 comments on commit 65bcf25

Please sign in to comment.