fix: fix task position to use task idx not task group idx

This commit is contained in:
Jordan Knott 2021-01-05 17:00:07 -06:00
parent a7c1ca328f
commit b5744bcf22

View File

@ -126,7 +126,7 @@ func newSeedCmd() *cobra.Command {
Name: taskName,
TaskGroupID: taskGroup.TaskGroupID,
CreatedAt: now,
Position: float64(65535 * (taskGroupIdx + 1)),
Position: float64(65535 * (taskIdx + 1)),
})
if err != nil {
return err