refactor(application): update application handling to support multiple app names and improve data structure

This commit is contained in:
Mauricio Siu
2025-08-01 00:34:57 -06:00
parent 17e9154887
commit 794e03460f
3 changed files with 12 additions and 7 deletions

View File

@@ -441,13 +441,13 @@ export const getNodeApplications = async (serverId?: string) => {
};
export const getApplicationInfo = async (
appName: string,
appNames: string[],
serverId?: string,
) => {
try {
let stdout = "";
let stderr = "";
const command = `docker service ps ${appName} --format '{{json .}}' --no-trunc`;
const command = `docker service ps ${appNames.join(" ")} --format '{{json .}}' --no-trunc`;
if (serverId) {
const result = await execAsyncRemote(serverId, command);