mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-26 17:45:49 +02:00
refactor: remove redundant ID assignment in backupVolume command
- Eliminated duplicate ID assignment in the backupVolume function to streamline Docker command generation. - Improved clarity and maintainability of the command logic by reducing unnecessary lines of code.
This commit is contained in:
@@ -53,7 +53,6 @@ const backupVolume = async (
|
||||
ID=$(docker ps -q --filter "label=com.docker.compose.project=${compose.appName}" --filter "label=com.docker.compose.service=${volumeBackup.serviceName}")
|
||||
docker stop $ID`;
|
||||
startCommand = `
|
||||
ID=$(docker ps -q --filter "label=com.docker.compose.project=${compose.appName}" --filter "label=com.docker.compose.service=${volumeBackup.serviceName}")
|
||||
docker start $ID`;
|
||||
}
|
||||
return `
|
||||
|
||||
Reference in New Issue
Block a user