native-ified the notifications domain
This commit is contained in:
22
apps/main/src/lib/domains/account/account.remote.ts
Normal file
22
apps/main/src/lib/domains/account/account.remote.ts
Normal 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" };
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user