fix(library): exclude no_resolve notes from sync no-id count
This commit is contained in:
parent
eb6b3d25d0
commit
75db364a1d
2 changed files with 20 additions and 1 deletions
|
|
@ -62,7 +62,12 @@ export async function libraryFolderSync(spec: MediaTypeSpec, deps: LibraryEngine
|
|||
const filename = filenameOf(note.path);
|
||||
if (isSkippableNote(filename, frontmatter, spec.itemType)) continue;
|
||||
if (!spec.hasId(frontmatter)) {
|
||||
report.skippedNoId++;
|
||||
// no_resolve opt-outs are deliberate manual notes — keep them out of the actionable no-id count
|
||||
if (hasNoResolveFlag(frontmatter)) {
|
||||
deps.log(`no_resolve flag set, skipping sync: ${note.path}`);
|
||||
} else {
|
||||
report.skippedNoId++;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (!opts.full && !spec.isActive(frontmatter)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue