mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00: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 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue