Fix post types

This commit is contained in:
Justin Edmund 2025-06-10 23:53:17 -07:00
parent 0503e20b5d
commit 318f33709f
2 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@
const payload = {
title,
slug,
postType: 'blog', // 'blog' is the database value for essays
type: 'blog', // 'blog' is the database value for essays
status,
content,
tags

View file

@ -212,7 +212,7 @@
if (postType === 'essay') {
postData = {
...postData,
type: 'essay',
type: 'blog', // 'blog' is the database value for essays
title: essayTitle,
slug: essaySlug,
excerpt: essayExcerpt,
@ -222,7 +222,7 @@
// All other content is just a "post" with optional link data and attachments
postData = {
...postData,
type: 'post'
type: 'microblog' // 'microblog' is for shorter posts
}
// Add link fields if present