diff --git a/mylogger.js b/mylogger.js index 31db895..be2c508 100644 --- a/mylogger.js +++ b/mylogger.js @@ -557,9 +557,9 @@ module.exports = class MyLogger { ]); } - await log(originFk); if (originChanged) await log(oldI[relation]); + await log(originFk); } } catch (err) { if (err.code == 'ER_NO_REFERENCED_ROW_2') { diff --git a/package-lock.json b/package-lock.json index 2bf882c..1ddbe7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mylogger", - "version": "1.1.2", + "version": "1.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mylogger", - "version": "1.1.2", + "version": "1.1.3", "license": "GPL-3.0", "dependencies": { "colors": "^1.4.0", diff --git a/package.json b/package.json index 3044943..32df12f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mylogger", - "version": "1.1.2", + "version": "1.1.3", "author": "Verdnatura Levante SL", "description": "MySQL and MariaDB logger using binary log", "license": "GPL-3.0",