refactor: update database service components to utilize environment context for project name and organization authorization checks

This commit is contained in:
Mauricio Siu
2025-09-01 20:15:05 -06:00
parent ecf7ae924f
commit e0b6a8627a
7 changed files with 27 additions and 23 deletions
+5 -1
View File
@@ -52,7 +52,11 @@ export const findRedisById = async (redisId: string) => {
const result = await db.query.redis.findFirst({
where: eq(redis.redisId, redisId),
with: {
project: true,
environment: {
with: {
project: true,
},
},
mounts: true,
server: true,
},