Skip to content

Commit

Permalink
🐛 Use first commit for date, not last
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Feb 21, 2021
1 parent f078afd commit ea2699f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const parseNoteFile = async (
) ||
(contents.split("\n").find((line) => line.startsWith("# ")) || "").split("# ")[1].trim() ||
undefined,
date: new Date(commits.data[0].commit.author.date),
date: new Date(commits.data[commits.data.length - 1].commit.author.date),
};
};

Expand Down

0 comments on commit ea2699f

Please sign in to comment.