This commit is contained in:
jarek committed 2026-01-14 08:18:20 +01:00
1 parent 027aee434c
commit 62636426bf
15 files changed
+317 -65

No files matched your search

+19
View File
@@ -2643,6 +2643,25 @@ export async function deleteStackSource(stackName: string, environmentId?: numbe
return true;
}
export async function updateStackSourceName(
oldStackName: string,
newStackName: string,
environmentId?: number | null
): Promise<boolean> {
await db.update(stackSources)
.set({
stackName: newStackName,
updatedAt: new Date().toISOString()
})
.where(and(
eq(stackSources.stackName, oldStackName),
environmentId !== undefined && environmentId !== null
? eq(stackSources.environmentId, environmentId)
: isNull(stackSources.environmentId)
));
return true;
}
// =============================================================================
// VULNERABILITY SCAN RESULTS
// =============================================================================