[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
|
@ -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…
Reference in New Issue