Skip to content

Commit f72046d

Browse files
committed
fix: 🐛 add token guard to updateAllFrontmatter to match sync() behavior
1 parent 3f618f8 commit f72046d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,11 @@ export default class ReadwiseMirror extends Plugin {
737737
return;
738738
}
739739

740+
if (!(await this._readwiseApi?.hasValidToken())) {
741+
this.notify.notice('Readwise: Valid API Token Required');
742+
return;
743+
}
744+
740745
try {
741746
this.isSyncing = true;
742747

0 commit comments

Comments
 (0)