Files
illusory-mapp/apps/main/src/lib/domains/account/account.remote.ts
2026-03-01 04:06:54 +02:00

23 lines
656 B
TypeScript

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" };
},
);