Skip to content

Commit

Permalink
[#1] fix crash index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Nov 9, 2021
1 parent 3a9560d commit bd36dc5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ const MarkdownContents = require('./markdown-contents')
const ReleaseNotes = require('./release-notes')

class TemplateEngine {
constructor(template, releaseNotes) {
constructor(template) {
this.template = template
this.releaseNotes = releaseNotes
}

async markdownContent(release) {
Expand All @@ -41,7 +40,7 @@ const githubs = {
valueOfFilename: async function (filename, release) {
switch (filename) {
case 'latestReleaseNotes.md':
return this.releaseNotes.contents
return ReleaseNotes.makeLatestReleaseNotes(release).contents
default:
return (await MarkdownContents.makeMarkdownContentsFromPinpointReadme(filename)).contents
}
Expand Down

0 comments on commit bd36dc5

Please sign in to comment.