+ logger.info('Remote account with uuid %s updated', accountAttributesToUpdate.uuid)
+ } catch (err) {
+ if (actor !== undefined && actorFieldsSave !== undefined) {
+ resetSequelizeInstance(actor, actorFieldsSave)
+ }
+
+ if (accountInstance !== undefined && accountFieldsSave !== undefined) {
+ resetSequelizeInstance(accountInstance, accountFieldsSave)
+ }
+
+ // This is just a debug because we will retry the insert
+ logger.debug('Cannot update the remote account.', err)
+ throw err
+ }