1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Make sure both directions exist.

This commit is contained in:
mike12345567 2021-02-09 13:20:53 +00:00
parent 04035a24e9
commit 3712de65ee

View file

@ -140,7 +140,7 @@ class LinkController {
if (linkId && linkId !== "" && linkDocIds.indexOf(linkId) === -1) {
// first check the doc we're linking to exists
try {
await this._db.get(linkId)
await Promise.all([this._db.get(linkId), this._db.get(row._id)])
} catch (err) {
// skip links that don't exist
continue