Skip to content

Commit

Permalink
fix handler_systemd with new schedule.Config
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Oct 28, 2023
1 parent 6081d3d commit c18b15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule/handler_systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (h *HandlerSystemd) RemoveJob(job *Config, permission string) error {
return nil
}

dropInDir := systemd.GetServiceFileDropInDir(job.Title, job.SubTitle)
dropInDir := systemd.GetServiceFileDropInDir(job.ProfileName, job.CommandName)

Check warning on line 207 in schedule/handler_systemd.go

View check run for this annotation

Codecov / codecov/patch

schedule/handler_systemd.go#L207

Added line #L207 was not covered by tests
err = os.RemoveAll(path.Join(systemdPath, dropInDir))
if err != nil {
return nil
Expand Down

0 comments on commit c18b15c

Please sign in to comment.