mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 15:56:19 -05:00
11 lines
299 B
TypeScript
11 lines
299 B
TypeScript
import { requireUser } from "~/features/auth/core/user.server";
|
|
import * as NotificationRepository from "../NotificationRepository.server";
|
|
|
|
export const loader = async () => {
|
|
const user = await requireUser();
|
|
|
|
return {
|
|
notifications: await NotificationRepository.findByUserId(user.id),
|
|
};
|
|
};
|