update So 15. Mär 17:31:01 CET 2020

This commit is contained in:
Robert Richter 2020-03-15 17:31:01 +01:00
parent 93da6934c9
commit 78b1357aa1
3 changed files with 4 additions and 2 deletions

View File

@ -199,6 +199,7 @@ module.exports = function(app, sql, uuidv4, app_cfg, passport, auth, waip, udp)
app.post('/rmld/:waip_uuid/:rmld_uuid', function(req, res) {
var waip_uuid = req.params.waip_uuid;
var rmld_uuid = req.params.rmld_uuid;
console.log('rmld by post: '+rmld_uuid);
sql.db_save_rmld(req.body, function(result){
if (result) {
req.flash('successMessage', 'Rückmeldung erfolgreich gesendet, auf zum Einsatz!');

View File

@ -618,7 +618,7 @@ module.exports = function(db, uuidv4, turf, app_cfg) {
function db_save_rmld(responseobj, callback) {
console.log('rmld by post: '+JSON.stringify(responseobj.rmld_uuid));
// Rueckmeldung aufarbeiten
var reuckmeldung = {};
reuckmeldung.rmld_uuid = responseobj.rmld_uuid;
@ -664,6 +664,7 @@ module.exports = function(db, uuidv4, turf, app_cfg) {
reuckmeldung.wache_id = null;
};
//console.log(JSON.stringify(reuckmeldung));
db.get(`select name_wache, nr_wache from waip_wachen where id = ?;`, [reuckmeldung.wache_id], function(err, row) {
if (err == null && row) {

View File

@ -105,7 +105,7 @@ module.exports = function(io, sql, tw, async, app_cfg) {
sql.db_get_single_response_by_rmlduuid(rmld_uuid, function(rmld){
console.log('vorhandene reuckmeldungen fuer die wache: ' + rmld);
console.log('vorhandene reuckmeldungen fuer die wache: ' + JSON.stringify(rmld));
if (rmld) {
//waip.reuckmeldung_senden(socket.id, rmld);
io.to(row.room).emit('io.response', 'a');