mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 03:52:24 -05:00 
			
		
		
		
	[bugfix] wrap the correct error on failed account update (#1176)
Signed-off-by: kim <grufwub@gmail.com> Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								97f5453378
							
						
					
				
			
			
				commit
				
					
						d445c60a26
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -401,7 +401,7 @@ func (d *deref) GetAccount(ctx context.Context, params GetAccountParams) (foundA | ||||||
| 
 | 
 | ||||||
| 	if accountDomainChanged || sharedInboxChanged || fieldsChanged || fingeredChanged { | 	if accountDomainChanged || sharedInboxChanged || fieldsChanged || fingeredChanged { | ||||||
| 		if dbErr := d.db.UpdateAccount(ctx, foundAccount); dbErr != nil { | 		if dbErr := d.db.UpdateAccount(ctx, foundAccount); dbErr != nil { | ||||||
| 			err = newErrDB(fmt.Errorf("GetRemoteAccount: error updating remoteAccount: %w", err)) | 			err = newErrDB(fmt.Errorf("GetRemoteAccount: error updating remoteAccount: %w", dbErr)) | ||||||
| 			return | 			return | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue