Skip to content

Commit

Permalink
Merge pull request #24 from RyoJerryYu/fix-updated-memo-not-modified
Browse files Browse the repository at this point in the history
fix(#22): fix fetched record not overwrite the existed
  • Loading branch information
RyoJerryYu authored Jun 13, 2024
2 parents f63bdf2 + f7eae65 commit 869afa4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "memos-sync",
"name": "Memos Sync",
"version": "0.4.2",
"version": "0.4.3",
"minAppVersion": "1.5.12",
"description": "Syncing memos from a [Memos](https://github.com/usememos/memos) server to your daily note. Fully compatible with official Daily Notes plugin, Calendar plugin and Periodic Notes plugin.",
"author": "RyoJerryYu",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-memos-sync",
"version": "0.4.2",
"version": "0.4.3",
"description": "Syncing Memos to Obsidian daily note.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/services/DailyMemos/DailyNoteModifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export class DailyNoteModifier {
);

const sortedRecordList = Object.entries({
...fetchedRecordList,
...existedRecordList,
...fetchedRecordList,
})
.sort((a, b) => Number(a[0]) - Number(b[0]))
.map((item) => item[1])
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"0.3.4": "1.5.12",
"0.4.0": "1.5.12",
"0.4.1": "1.5.12",
"0.4.2": "1.5.12"
"0.4.2": "1.5.12",
"0.4.3": "1.5.12"
}

0 comments on commit 869afa4

Please sign in to comment.