Skip to content

Commit 213c610

Browse files
committed
fix: add default is_private value
1 parent 9eb9485 commit 213c610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/postService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ const postService = {
348348
variables: {
349349
input: {
350350
...args,
351-
is_private: args.is_private || true,
352351
},
353352
},
354353
},
@@ -383,6 +382,7 @@ const postService = {
383382
const endpoint = getEndpoint();
384383
const accessToken = cookies.get('access_token') ?? '';
385384
try {
385+
console.log('args', args);
386386
const res = await Axios.post<AxiosResponse<EditPostResponse>>(
387387
endpoint,
388388
{
@@ -391,7 +391,7 @@ const postService = {
391391
variables: {
392392
input: {
393393
...args,
394-
is_private: args.is_private || true,
394+
is_private: args.is_private || false,
395395
},
396396
},
397397
},

0 commit comments

Comments
 (0)