I think you can set the publishedAt to a Date.now() timestamp. if publishedAt is null it’s in draft if it has a timestamp it’s considered published.
Hope this helps.
3 Likes
I think you can set the publishedAt to a Date.now() timestamp. if publishedAt is null it’s in draft if it has a timestamp it’s considered published.
Hope this helps.