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 Oct 25, 2023
1 parent da7717e commit 05e4bed
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 @@ -90,7 +90,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", "=", "29766"))

for (const post of posts) {
Expand Down Expand Up @@ -159,6 +160,7 @@ const migrate = async (): Promise<void> => {
subtitle: post.excerpt,
excerpt: post.excerpt,
authors: parsePostAuthors(post.authors),
"featured-image": post.featured_image,
dateline: dateline,
// TODO: this discards block level elements - those might be needed?
refs: undefined,
Expand Down

0 comments on commit 05e4bed

Please sign in to comment.