fix: fix task position to use task idx not task group idx
This commit is contained in:
		@@ -126,7 +126,7 @@ func newSeedCmd() *cobra.Command {
 | 
				
			|||||||
								Name:        taskName,
 | 
													Name:        taskName,
 | 
				
			||||||
								TaskGroupID: taskGroup.TaskGroupID,
 | 
													TaskGroupID: taskGroup.TaskGroupID,
 | 
				
			||||||
								CreatedAt:   now,
 | 
													CreatedAt:   now,
 | 
				
			||||||
								Position:    float64(65535 * (taskGroupIdx + 1)),
 | 
													Position:    float64(65535 * (taskIdx + 1)),
 | 
				
			||||||
							})
 | 
												})
 | 
				
			||||||
							if err != nil {
 | 
												if err != nil {
 | 
				
			||||||
								return err
 | 
													return err
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user