mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
style: format overview.ts (biome)
Some checks failed
Auto PR to main when version changes / create-pr (push) Waiting to run
Build Docker images / build-and-push-cloud-image (push) Waiting to run
Build Docker images / build-and-push-schedule-image (push) Waiting to run
Build Docker images / build-and-push-server-image (push) Waiting to run
Dokploy Docker Build / docker-amd (push) Waiting to run
Dokploy Docker Build / docker-arm (push) Waiting to run
Dokploy Docker Build / combine-manifests (push) Blocked by required conditions
Dokploy Docker Build / generate-release (push) Blocked by required conditions
Dokploy Docker Build / sync-version (push) Blocked by required conditions
autofix.ci / format (push) Waiting to run
Dokploy Monitoring Build / docker-amd (push) Waiting to run
Dokploy Monitoring Build / docker-arm (push) Waiting to run
Dokploy Monitoring Build / combine-manifests (push) Blocked by required conditions
Generate and Sync OpenAPI / Generate OpenAPI and commit to Dokploy repo (push) Has been cancelled
Some checks failed
Auto PR to main when version changes / create-pr (push) Waiting to run
Build Docker images / build-and-push-cloud-image (push) Waiting to run
Build Docker images / build-and-push-schedule-image (push) Waiting to run
Build Docker images / build-and-push-server-image (push) Waiting to run
Dokploy Docker Build / docker-amd (push) Waiting to run
Dokploy Docker Build / docker-arm (push) Waiting to run
Dokploy Docker Build / combine-manifests (push) Blocked by required conditions
Dokploy Docker Build / generate-release (push) Blocked by required conditions
Dokploy Docker Build / sync-version (push) Blocked by required conditions
autofix.ci / format (push) Waiting to run
Dokploy Monitoring Build / docker-amd (push) Waiting to run
Dokploy Monitoring Build / docker-arm (push) Waiting to run
Dokploy Monitoring Build / combine-manifests (push) Blocked by required conditions
Generate and Sync OpenAPI / Generate OpenAPI and commit to Dokploy repo (push) Has been cancelled
This commit is contained in:
parent
1b9504897a
commit
8bc1bd36d8
@ -280,7 +280,9 @@ function ownerFrom(
|
||||
// Shared by backups, volume backups, and domains — all resolve "which one of these
|
||||
// nullable relations is actually set" the same way.
|
||||
function pickFirst<TRow, TType extends string>(
|
||||
candidates: Array<[row: TRow | null | undefined, id: string | undefined, type: TType]>,
|
||||
candidates: Array<
|
||||
[row: TRow | null | undefined, id: string | undefined, type: TType]
|
||||
>,
|
||||
): [TRow, string, TType] | null {
|
||||
for (const [row, id, type] of candidates) {
|
||||
if (row && id) return [row, id, type];
|
||||
@ -318,7 +320,11 @@ function pickVolumeBackupOwner(volumeBackup: {
|
||||
compose?: (OwnerRow & { composeId: string }) | null;
|
||||
}): Owner | null {
|
||||
const found = pickFirst<OwnerRow, OverviewServiceType>([
|
||||
[volumeBackup.application, volumeBackup.application?.applicationId, "application"],
|
||||
[
|
||||
volumeBackup.application,
|
||||
volumeBackup.application?.applicationId,
|
||||
"application",
|
||||
],
|
||||
[volumeBackup.postgres, volumeBackup.postgres?.postgresId, "postgres"],
|
||||
[volumeBackup.mariadb, volumeBackup.mariadb?.mariadbId, "mariadb"],
|
||||
[volumeBackup.mysql, volumeBackup.mysql?.mysqlId, "mysql"],
|
||||
@ -634,7 +640,10 @@ function orgScopeCondition(
|
||||
accessedServices: string[] | null,
|
||||
) {
|
||||
return accessedServices !== null
|
||||
? and(eq(projects.organizationId, orgId), inArray(idColumn, accessedServices))
|
||||
? and(
|
||||
eq(projects.organizationId, orgId),
|
||||
inArray(idColumn, accessedServices),
|
||||
)
|
||||
: eq(projects.organizationId, orgId);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user