update Di 16. Jun 15:31:01 CEST 2020

This commit is contained in:
Robert Richter 2020-06-16 15:31:01 +02:00
parent 884219a247
commit e96bc735ac

View File

@ -137,8 +137,10 @@ module.exports = function (db, app_cfg) {
console.log(waip_id);
console.log(socket_id);
// Abfrage ob zu Socket und Waip-ID bereits History-Daten hinterlegt sind
db.get('select * from waip_history where waip_id like ? and socket_id like ?', [waip_id, socket_id], function (err, row) {
db.get('select * from waip_history where waip_id = ? and socket_id like \'?\'', [waip_id, socket_id], function (err, row) {
// FIXME Testen
console.log(err);
console.log(row);
if (err == null && row) {
// wenn History-Daten hinterlegt sind, dann pruefen sich etwas verändert hat