From 225e5685d31696b5fd6ff7dcf507db910bc0dc6b Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sun, 25 Jun 2023 18:39:58 +0200 Subject: [PATCH] refs #5900 Log before into old origin when origin changes --- mylogger.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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",