feat: add get notification single notification
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s
This commit is contained in:
parent
549410e9e3
commit
ae252acbb8
1 changed files with 4 additions and 2 deletions
|
|
@ -67,9 +67,11 @@ export class NotificationController extends Controller {
|
|||
@Get("{notificationId}")
|
||||
@Security("keycloak")
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue