feat: add get notification single notification
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s

This commit is contained in:
Methapon Metanipat 2024-10-30 14:33:34 +07:00 committed by Methapon2001
parent 549410e9e3
commit ae252acbb8

View file

@ -67,9 +67,11 @@ export class NotificationController extends Controller {
@Get("{notificationId}") @Get("{notificationId}")
@Security("keycloak") @Security("keycloak")
async getNotification(@Request() req: RequestWithUser, @Path() notificationId: string) { async getNotification(@Request() req: RequestWithUser, @Path() notificationId: string) {
// TODO: implement const record = await prisma.notification.findFirst({ where: { id: notificationId } });
return {}; if (!record) throw notFoundError("Notification");
return record;
} }
@Post() @Post()