mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
import { requireUser } from "~/features/auth/core/user.server";
|
|
import * as SQGroupRepository from "~/features/sendouq/SQGroupRepository.server";
|
|
import type { SerializeFrom } from "~/utils/remix";
|
|
|
|
export type TrustersLoaderData = SerializeFrom<typeof loader>;
|
|
|
|
export const loader = async () => {
|
|
const { id: userId } = requireUser();
|
|
|
|
return {
|
|
trusters: await SQGroupRepository.usersThatTrusted(userId),
|
|
};
|
|
};
|