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 Aug 2, 2023
1 parent ce74dbe commit f06fea6
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 @@ -34,7 +34,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 @@ -88,6 +89,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 f06fea6

Please sign in to comment.