mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02: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:
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user