mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 19:25:00 +03:00
Fix two bugs in `DocsSearchService.watchDatabasesTo`: - Normalize array-valued `node.fields.docId` before filtering out self-referencing backlinks. - `JSON.parse` the indexed `additional` string before validating it with `DatabaseAdditionalSchema` (moved to module scope), restoring `databaseName` and sorting in `DocDatabaseBacklinksService.watchDbBacklinkRows$`. - Add a regression test covering array-valued self-links and parsed `databaseName`.