mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-18 03:02:56 +00:00
Merge pull request #4931 from Dokploy/fix/postgres-100-arg-limit-finders
fix: avoid postgres 100-argument limit in schedule, volume backup and port queries
This commit is contained in:
@@ -180,6 +180,9 @@ export const initializeJobs = async () => {
|
|||||||
where: eq(schedules.enabled, true),
|
where: eq(schedules.enabled, true),
|
||||||
with: {
|
with: {
|
||||||
application: {
|
application: {
|
||||||
|
columns: {
|
||||||
|
applicationId: true,
|
||||||
|
},
|
||||||
with: {
|
with: {
|
||||||
server: true,
|
server: true,
|
||||||
},
|
},
|
||||||
@@ -227,6 +230,9 @@ export const initializeJobs = async () => {
|
|||||||
where: eq(volumeBackups.enabled, true),
|
where: eq(volumeBackups.enabled, true),
|
||||||
with: {
|
with: {
|
||||||
application: {
|
application: {
|
||||||
|
columns: {
|
||||||
|
applicationId: true,
|
||||||
|
},
|
||||||
with: {
|
with: {
|
||||||
server: true,
|
server: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,12 +30,8 @@ export const finPortById = async (portId: string) => {
|
|||||||
where: eq(ports.portId, portId),
|
where: eq(ports.portId, portId),
|
||||||
with: {
|
with: {
|
||||||
application: {
|
application: {
|
||||||
with: {
|
columns: {
|
||||||
environment: {
|
applicationId: true,
|
||||||
with: {
|
|
||||||
project: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ export const findScheduleById = async (scheduleId: string) => {
|
|||||||
where: eq(schedules.scheduleId, scheduleId),
|
where: eq(schedules.scheduleId, scheduleId),
|
||||||
with: {
|
with: {
|
||||||
application: {
|
application: {
|
||||||
|
columns: {
|
||||||
|
applicationId: true,
|
||||||
|
appName: true,
|
||||||
|
serverId: true,
|
||||||
|
},
|
||||||
with: {
|
with: {
|
||||||
environment: {
|
environment: {
|
||||||
with: {
|
with: {
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ export const findVolumeBackupById = async (volumeBackupId: string) => {
|
|||||||
where: eq(volumeBackups.volumeBackupId, volumeBackupId),
|
where: eq(volumeBackups.volumeBackupId, volumeBackupId),
|
||||||
with: {
|
with: {
|
||||||
application: {
|
application: {
|
||||||
|
columns: {
|
||||||
|
applicationId: true,
|
||||||
|
appName: true,
|
||||||
|
serverId: true,
|
||||||
|
},
|
||||||
with: {
|
with: {
|
||||||
environment: {
|
environment: {
|
||||||
with: {
|
with: {
|
||||||
|
|||||||
Reference in New Issue
Block a user