Skip to content

Commit

Permalink
fix(weekly note): fix how the weekly note template is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
MCluck90 committed Feb 22, 2022
1 parent f581d82 commit 27a773a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/note-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ export const createWeeklyNote = async (

let weeklyTemplate = ''
try {
weeklyTemplate = fs
.readFileSync(path.join(__dirname, '../src/templates/weekly.md'))
.toString()
weeklyTemplate = getTemplate('weekly')
} catch (e) {
console.error('Failed to find weekly template\n', e)
vscode.window.showErrorMessage(
Expand Down

0 comments on commit 27a773a

Please sign in to comment.