fix: rename GetBuildDir param from appID to appName (closes #123)

The parameter is always called with app.Name, not an ID. Rename to match
actual usage and prevent confusion.
This commit is contained in:
clawbot 2026-02-21 00:55:24 -08:00 committed by user
parent 91645bee3b
commit 7045ffb469

View File

@ -251,8 +251,8 @@ func New(lc fx.Lifecycle, params ServiceParams) (*Service, error) {
}
// GetBuildDir returns the build directory path for an app.
func (svc *Service) GetBuildDir(appID string) string {
return filepath.Join(svc.config.DataDir, "builds", appID)
func (svc *Service) GetBuildDir(appName string) string {
return filepath.Join(svc.config.DataDir, "builds", appName)
}
// GetLogFilePath returns the path to the log file for a deployment.