MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / _updatePageBacklink

Function _updatePageBacklink

apps/app-server/src/trpc/api/pages/bump.ts:176–192  ·  view source on GitHub ↗
(input: {
  pageId: string;
  parentPageId?: string;
  dataAbstraction: DataAbstraction<typeof dataHashes>;
})

Source from the content-addressed store, hash-verified

174}
175
176async 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
194async function _updatePageLastActivityDate(input: { pageId: string }) {
195 try {

Callers 1

bumpFunction · 0.85

Calls 1

addPageBacklinkFunction · 0.90

Tested by

no test coverage detected