mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Drop IDOrderDesc for listing Actions task and always order by id DESC (#31150)
		
	Close #31066 Just follow what `FindRunOptions` and `FindScheduleOptions` do. (cherry picked from commit 572fa55fbcc2cb9418b4f7b981a7c80a11899276)
This commit is contained in:
		
					parent
					
						
							
								18eef3b23a
							
						
					
				
			
			
				commit
				
					
						3e5f85ccf3
					
				
			
		
					 2 changed files with 3 additions and 8 deletions
				
			
		|  | @ -54,7 +54,6 @@ type FindTaskOptions struct { | |||
| 	UpdatedBefore timeutil.TimeStamp | ||||
| 	StartedBefore timeutil.TimeStamp | ||||
| 	RunnerID      int64 | ||||
| 	IDOrderDesc   bool | ||||
| } | ||||
| 
 | ||||
| func (opts FindTaskOptions) ToConds() builder.Cond { | ||||
|  | @ -84,8 +83,5 @@ func (opts FindTaskOptions) ToConds() builder.Cond { | |||
| } | ||||
| 
 | ||||
| func (opts FindTaskOptions) ToOrders() string { | ||||
| 	if opts.IDOrderDesc { | ||||
| 		return "`id` DESC" | ||||
| 	} | ||||
| 	return "" | ||||
| 	return "`id` DESC" | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue