@waline/vercel 1.18.4 → 1.18.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/vercel",
3
- "version": "1.18.4",
3
+ "version": "1.18.5",
4
4
  "description": "vercel server for waline comment system",
5
5
  "keywords": [
6
6
  "waline",
@@ -558,7 +558,9 @@ module.exports = class extends BaseRest {
558
558
  const notify = this.service('notify');
559
559
  await notify.run(
560
560
  { ...resp, comment: markdownParser(resp.comment), rawComment: comment },
561
- { ...parentComment, comment: markdownParser(parentComment.comment) }
561
+ parentComment
562
+ ? { ...parentComment, comment: markdownParser(parentComment.comment) }
563
+ : undefined
562
564
  );
563
565
  }
564
566