We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33409f2 commit d86cc6dCopy full SHA for d86cc6d
src/medium-gateway.ts
@@ -11,7 +11,6 @@ export type Article = {
11
12
const bodyFromArticle = ({ markdown, ...rest }: Article) => ({
13
article: {
14
- published: false,
15
body_markdown: markdown,
16
...rest,
17
},
@@ -22,7 +21,7 @@ export const postArticle = async (
22
21
requestUrl: MakeHttpRequest,
23
) => {
24
const body = bodyFromArticle(input.article);
25
- console.log("Create dev article", { body });
+ console.log("Create dev article", { ...body, published: false });
26
const response = await requestUrl({
27
url: "https://dev.to/api/articles",
28
method: "POST",
0 commit comments