mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Fix new way to call new activity
This commit is contained in:
parent
6b9fecf172
commit
895933ccf9
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ func (svc *Service) UploadSoftwareInstaller(ctx context.Context, payload *fleet.
|
|||
}
|
||||
|
||||
// Create activity
|
||||
if err := svc.ds.NewActivity(ctx, vc.User, fleet.ActivityTypeAddedSoftware{
|
||||
if err := svc.NewActivity(ctx, vc.User, fleet.ActivityTypeAddedSoftware{
|
||||
SoftwareTitle: payload.Title,
|
||||
SoftwarePackage: payload.Filename,
|
||||
TeamName: teamName,
|
||||
|
|
@ -112,7 +112,7 @@ func (svc *Service) DeleteSoftwareInstaller(ctx context.Context, titleID uint, t
|
|||
teamName = &t.Name
|
||||
}
|
||||
|
||||
if err := svc.ds.NewActivity(ctx, vc.User, fleet.ActivityTypeDeletedSoftware{
|
||||
if err := svc.NewActivity(ctx, vc.User, fleet.ActivityTypeDeletedSoftware{
|
||||
SoftwareTitle: meta.SoftwareTitle,
|
||||
SoftwarePackage: meta.Name,
|
||||
TeamName: teamName,
|
||||
|
|
|
|||
Loading…
Reference in a new issue