Skip to content

Commit 6a9a194

Browse files
committed
Fixes update bug
1 parent 03b62f2 commit 6a9a194

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

velog-backend/src/router/posts/post/post.ctrl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ export const updatePost = async (ctx: Context): Promise<*> => {
230230
await SeriesPosts.append(series_id, id, ctx.user.id);
231231
}
232232
}
233-
} else {
233+
} /* else {
234234
await SeriesPosts.append(series_id, id, ctx.user.id);
235-
}
235+
} */
236236
} catch (e) {
237237
ctx.throw(500, e);
238238
}

velog-backend/src/router/posts/posts.ctrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ export const readPost = async (ctx: Context): Promise<*> => {
386386
liked,
387387
});
388388

389+
389390
ctx.body = {
390391
...serialized,
391392
series: seriesPost

0 commit comments

Comments
 (0)