We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0966092 commit 2bdca58Copy full SHA for 2bdca58
packages/velog-server/src/services/PostService/index.ts
@@ -403,15 +403,17 @@ export class PostService implements Service {
403
}
404
405
public async updatePostScore(postId: string) {
406
- await axios.patch(
407
- `${ENV.cronHost}/api/posts/v1/score/${postId}`,
408
- {},
409
- {
410
- headers: {
411
- 'Cron-Api-Key': ENV.cronApiKey,
+ try {
+ await axios.patch(
+ `${ENV.cronHost}/api/posts/v1/score/${postId}`,
+ {},
+ {
+ headers: {
412
+ 'Cron-Api-Key': ENV.cronApiKey,
413
+ },
414
},
- },
- )
415
+ )
416
+ } catch (_) {}
417
418
public shortDescription(post: Post): string {
419
if (post.short_description) return post.short_description
0 commit comments