mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-04 19:22:16 +00:00
refactor: update API routes and services to use environment context for organization authorization checks; enhance service retrieval methods to include environment details
This commit is contained in:
@@ -56,7 +56,11 @@ export const findMySqlById = async (mysqlId: string) => {
|
||||
const result = await db.query.mysql.findFirst({
|
||||
where: eq(mysql.mysqlId, mysqlId),
|
||||
with: {
|
||||
project: true,
|
||||
environment: {
|
||||
with: {
|
||||
project: true,
|
||||
},
|
||||
},
|
||||
mounts: true,
|
||||
server: true,
|
||||
backups: {
|
||||
|
||||
Reference in New Issue
Block a user