diff --git a/api/src/zero.ts b/api/src/zero.ts index 9786c10..ec01ca6 100644 --- a/api/src/zero.ts +++ b/api/src/zero.ts @@ -17,6 +17,7 @@ import { } from "@money/shared"; import type { AuthData } from "@money/shared/auth"; import { getHono } from "./hono"; +import { db } from "./db"; const processor = new PushProcessor( @@ -30,6 +31,12 @@ const createMutators = (authData: AuthData | null) => { const mutators = createMutatorsShared(authData); return { ...mutators, + link: { + ...mutators.link, + async create() { + console.log("Here is my function running on the server!!!"); + } + } } as const satisfies Mutators; } diff --git a/app/_layout.tsx b/app/_layout.tsx index e927dc5..2688baf 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -44,7 +44,7 @@ export default function RootLayout() { - + diff --git a/app/index.tsx b/app/index.tsx index c641029..6158cbb 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -32,6 +32,9 @@ export default function HomeScreen() {