Skip to content

Commit

Permalink
Add callout for auto refresh to keep user informed of impact.
Browse files Browse the repository at this point in the history
  • Loading branch information
adyscorpius committed May 23, 2024
1 parent 9d86ec6 commit 83b5c70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ async function main() {
if (logseq.settings?.autoRefresh === "No") return;
console.log("Starting DB refresh");

db.issues.each(async (val) => {
await db.issues.each(async (val) => {
await updateJiraIssue(val.useSecondOrg, val.blockid);
})
const count = await db.issues.count();
logseq.UI.showMsg(`Experimental: Refresh ${count} Jira issues...`)
})

logseq.beforeunload(async () => {
Expand Down

0 comments on commit 83b5c70

Please sign in to comment.