mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Use nanoseconds for campaign IDs (#6216)
Fixes #4806 by adding resolution to the generated IDs.
This commit is contained in:
parent
8fe63d1260
commit
75f093e802
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ func (svc *Service) NewDistributedQueryCampaign(ctx context.Context, queryString
|
|||
return nil, err
|
||||
}
|
||||
query = &fleet.Query{
|
||||
Name: fmt.Sprintf("distributed_%s_%d", vc.Email(), time.Now().Unix()),
|
||||
Name: fmt.Sprintf("distributed_%s_%d", vc.Email(), time.Now().UnixNano()),
|
||||
Query: queryString,
|
||||
Saved: false,
|
||||
AuthorID: ptr.Uint(vc.UserID()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue