fix: handle optional authConfig in mechanizeDockerContainer function

- Updated the mechanizeDockerContainer function to conditionally use authConfig when creating a Docker service, ensuring proper service creation based on authentication settings.
This commit is contained in:
Mauricio Siu
2026-03-17 00:17:51 -06:00
parent 6a1bedb90f
commit e7af2c0ebd
@@ -182,8 +182,12 @@ export const mechanizeDockerContainer = async (
}); });
} catch (error) { } catch (error) {
console.log(error); console.log(error);
if (authConfig) {
await docker.createService(authConfig, settings);
} else {
await docker.createService(settings); await docker.createService(settings);
} }
}
}; };
const getImageName = (application: ApplicationNested) => { const getImageName = (application: ApplicationNested) => {