(input: {
pageId: string;
parentPageId?: string;
dataAbstraction: DataAbstraction<typeof dataHashes>;
})
| 174 | } |
| 175 | |
| 176 | async function _updatePageBacklink(input: { |
| 177 | pageId: string; |
| 178 | parentPageId?: string; |
| 179 | dataAbstraction: DataAbstraction<typeof dataHashes>; |
| 180 | }) { |
| 181 | if (input.parentPageId != null) { |
| 182 | try { |
| 183 | await addPageBacklink({ |
| 184 | targetPageId: input.pageId, |
| 185 | sourcePageId: input.parentPageId, |
| 186 | dataAbstraction: input.dataAbstraction, |
| 187 | }); |
| 188 | } catch (error) { |
| 189 | // Ignore error: Page doesn't need to exist for bump to succeed |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | async function _updatePageLastActivityDate(input: { pageId: string }) { |
| 195 | try { |
no test coverage detected