Skip to content

Commit

Permalink
fix: paper websocket message parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeptemberHX committed May 20, 2022
1 parent fac1e6f commit 18c3f6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joplin-plugin-enhancement",
"version": "0.6.0",
"version": "0.6.1",
"scripts": {
"dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"prepare": "npm run dist",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/papers/papersWS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export class PapersWS {
continue;
}

if (change.type === 'created' || change.type === 'updated') { // new paper is created or updated
if (change.action === 'created' || change.action === 'updated') { // new paper is created or updated
changeItemIds.push(change.id);
} else if (change.type === 'deleted') { // paper is deleted
} else if (change.action === 'deleted') { // paper is deleted
removedItemIds.push(change.id);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 1,
"id": "com.septemberhx.Joplin.Enhancement",
"app_min_version": "2.7",
"version": "0.6.0",
"version": "0.6.1",
"name": "Enhancement",
"description": "Many small enhancement for joplin",
"author": "SeptemberHX",
Expand Down

0 comments on commit 18c3f6d

Please sign in to comment.