23 lines
656 B
TypeScript
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" };
|
|
},
|
|
);
|