From da6528e64ef167763414c8793e4f8192b6ff36c6 Mon Sep 17 00:00:00 2001 From: Henrik Gerdes Date: Fri, 16 Jun 2023 18:12:48 +0200 Subject: [PATCH] fix: no more infinite loop on note update --- src/manifest.json | 32 +++++++++++++++++++++----------- src/util.ts | 2 +- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index bdaedc5..14cc149 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,13 +1,23 @@ { - "manifest_version": 1, - "id": "github.hegerdes.joplin_remote_note_pull", - "app_min_version": "2.8", - "version": "1.0.2", - "name": "Remote-Note-Pull", - "description": "This Plugin will periodically pull public available Markdown documents into your notebook and keeps them up to date", - "author": "hegerdes", - "homepage_url": "https://github.com/hegerdes/joplin-plugin-remote-note-pull", - "repository_url": "https://github.com/hegerdes/joplin-plugin-remote-note-pull", - "keywords": ["joplin", "nodejs", "markdown", "sync"], - "categories": ["personal knowledge management", "productivity"] + "manifest_version": 1, + "id": "github.hegerdes.joplin_remote_note_pull", + "app_min_version": "2.8", + "version": "1.1.1", + "name": "Remote-Note-Pull", + "description": "This plugin will periodically pull public available markdown documents into your notebook and keeps them up to date", + "author": "hegerdes", + "homepage_url": "https://github.com/hegerdes/joplin-plugin-remote-note-pull", + "repository_url": "https://github.com/hegerdes/joplin-plugin-remote-note-pull", + "keywords": [ + "joplin", + "nodejs", + "markdown", + "sync", + "notes", + "github" + ], + "categories": [ + "personal knowledge management", + "productivity" + ] } diff --git a/src/util.ts b/src/util.ts index d710e77..6fd1c2f 100644 --- a/src/util.ts +++ b/src/util.ts @@ -62,7 +62,7 @@ export const getAllNotes = async (): Promise> => { data.items.forEach((entry) => notes.set(entry.id, entry)); while (data.has_more) { pageNum++; - let data = await joplin.data.get(["notes"], { + data = await joplin.data.get(["notes"], { fields: query_fields, limit: notes_query_limit, page: pageNum,