native-ified the notifications domain

This commit is contained in:
user
2026-03-01 04:06:54 +02:00
parent cf7fa2663c
commit 6b3ecc3aad
6 changed files with 342 additions and 430 deletions

View File

@@ -0,0 +1,22 @@
import { ensureAccountExistsSchema } from "@pkg/logic/domains/user/data";
import { command, getRequestEvent, query } from "$app/server";
export const getMyInfoSQ = query(async () => {
const event = getRequestEvent();
// .... do stuff usually done in a router here
return { data: "testing" };
});
export const getUsersInfoByIdSQ = query(async () => {
// .... do stuff usually done in a router here
return { data: "testing" };
});
export const ensureAccountExistsSQ = command(
ensureAccountExistsSchema,
async (payload) => {
// .... do stuff usually done in a router here
return { data: "testing" };
},
);