Skip to content

Commit

Permalink
v0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiiiz committed Aug 5, 2022
2 parents 18b97bf + 4effc10 commit d32c858
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-raindrop-highlights",
"name": "Raindrop Highlights",
"version": "0.0.7",
"version": "0.0.8",
"minAppVersion": "0.14.0",
"description": "Sync your Raindrop.io highlights.",
"author": "kaiiiz",
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-raindrop-highlights",
"version": "0.0.7",
"version": "0.0.8",
"description": "Sync your Raindrop.io highlights.",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class RaindropAPI {
}
articles = articles.filter(article => {
return article.lastUpdate >= lastSync;
})
});
}
}

Expand All @@ -115,7 +115,7 @@ export class RaindropAPI {
if (lastSync !== undefined) {
article['highlights'] = article['highlights'].filter((hl) => {
return hl.lastUpdate >= lastSync;
})
});
}
}

Expand Down
5 changes: 2 additions & 3 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ export default class RaindropSync {
try {
console.debug('start sync collection:', collection.title, "last sync at:", lastSyncDate);
articles = await this.api.getRaindropsAfter(collection.id, lastSyncDate);
await this.syncArticles(articles, collectionFolder);
await this.syncCollectionComplete(collection);
} catch (e) {
console.error(e);
new Notice(`Sync Raindrop collection ${collection.title} failed: ${e.message}`);
}

await this.syncArticles(articles, collectionFolder);
await this.syncCollectionComplete(collection);
}

async syncArticles(articles: RaindropArticle[], folderPath: string) {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"0.0.4": "0.14.0",
"0.0.5": "0.14.0",
"0.0.6": "0.14.0",
"0.0.7": "0.14.0"
"0.0.7": "0.14.0",
"0.0.8": "0.14.0"
}

0 comments on commit d32c858

Please sign in to comment.