update Di 26. Mai 17:01:01 CEST 2020

This commit is contained in:
Robert Richter 2020-05-26 17:01:01 +02:00
parent 85834350fb
commit 56f509556b

View File

@ -1,5 +1,8 @@
module.exports = function (db, uuidv4, app_cfg) {
// TODO: welche Abfragen noch notwendig?
// Module laden
const turf = require('@turf/turf');
@ -514,7 +517,11 @@ module.exports = function (db, uuidv4, app_cfg) {
VALUES (
\'` + typ + `\',
\'` + text + `\')`);
//TODO: Log auf 20.000 Datensätze begrenzen
// Log auf 50.000 Datensätze begrenzen
db.run(`DELETE FROM waip_log WHERE id IN
(
SELECT id FROM waip_log ORDER BY id DESC LIMIT 50000, 100
)`);
};
function db_get_log(callback) {