Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkerchan authored Oct 11, 2024
1 parent bb98b6d commit 4ecc831
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/notion2md.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ async function main() {
],
}
});

if(!response.results.length){
console.log('no data')
return
}

let mid = (`${startDay}_${today}`).replace(/-/g,'')
let mdHead = `---\ndate: ${today.replace(/-/g,'/')}\ntoc: true\n---\n\n`
Expand Down

0 comments on commit 4ecc831

Please sign in to comment.