mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 18:02:25 -05:00 
			
		
		
		
	kim is a reply guy (#208)
* bun debug * bun trace logging hooks * more tests * fix up some stuffffff * drop the frontend cache until a proper fix is made * go fmt
This commit is contained in:
		
					parent
					
						
							
								64bd689e55
							
						
					
				
			
			
				commit
				
					
						9dc2255a8f
					
				
			
		
					 20 changed files with 537 additions and 163 deletions
				
			
		|  | @ -105,16 +105,6 @@ func (b *basicDB) UpdateByPrimaryKey(ctx context.Context, i interface{}) db.Erro | |||
| 	return b.conn.ProcessError(err) | ||||
| } | ||||
| 
 | ||||
| func (b *basicDB) UpdateOneByPrimaryKey(ctx context.Context, key string, value interface{}, i interface{}) db.Error { | ||||
| 	q := b.conn.NewUpdate(). | ||||
| 		Model(i). | ||||
| 		Set("? = ?", bun.Safe(key), value). | ||||
| 		WherePK() | ||||
| 
 | ||||
| 	_, err := q.Exec(ctx) | ||||
| 	return b.conn.ProcessError(err) | ||||
| } | ||||
| 
 | ||||
| func (b *basicDB) UpdateWhere(ctx context.Context, where []db.Where, key string, value interface{}, i interface{}) db.Error { | ||||
| 	q := b.conn.NewUpdate().Model(i) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue