lots of changes with docker
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m57s

This commit is contained in:
2026-04-03 09:51:52 -05:00
parent 82ab735982
commit beae6eb648
36 changed files with 2284 additions and 36 deletions

View File

@@ -9,6 +9,8 @@ import { tryCatch } from "../utils/trycatch.utils.js";
const r = Router();
r.get("/", async (req, res: Response) => {
const { userId } = req.query;
const hasPermissions = await auth.api.userHasPermission({
body: {
//userId: req?.user?.id,
@@ -24,7 +26,7 @@ r.get("/", async (req, res: Response) => {
.select()
.from(notificationSub)
.where(
!hasPermissions.success
userId || !hasPermissions.success
? eq(notificationSub.userId, `${req?.user?.id ?? ""}`)
: undefined,
),
@@ -47,7 +49,7 @@ r.get("/", async (req, res: Response) => {
level: "info",
module: "notification",
subModule: "post",
message: `Subscription deleted`,
message: `Subscriptions`,
data: data ?? [],
status: 200,
});