Skip to content

Commit

Permalink
fix: Remove debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunojm committed Jul 20, 2023
1 parent cdbddcc commit 31cb894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function App() {
return new Promise((resolve) => {
logseq.Editor.getPage(newBooksIDsMap[userBookId]).then((res) => {
if (res !== null) {
console.log(res)
logseq.Editor.deletePage(res.name).then(() => {
// @ts-ignore
setNotification(`Deleting ${res.name}`)
Expand Down
6 changes: 4 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ function resyncDeleted(callback: (() => void)) {
return new Promise((resolve) => {
logseq.Editor.getPage(booksIDsMap[userBookId]).then((res) => {
if (res === null) {
console.log(res, booksIDsMap[userBookId], userBookId)
resolve(([booksIDsMap[userBookId], userBookId]))
console.log(`Page UserBook ID: '${userBookId}' deleted, going to resync.`)
} else {
Expand All @@ -539,14 +538,17 @@ function resyncDeleted(callback: (() => void)) {
// @ts-ignore
refreshBookExport(r.filter(b => b !== null)).then(() => {
console.log('Resync deleted done.')
callback()
})
})

}
)
}
}
(new Promise(r => setTimeout(r, 2000))).then(() => {
callback()
}
)
}

// @ts-ignore
Expand Down

0 comments on commit 31cb894

Please sign in to comment.