update Di 26. Mai 17:01:01 CEST 2020
This commit is contained in:
parent
85834350fb
commit
56f509556b
@ -1,5 +1,8 @@
|
|||||||
module.exports = function (db, uuidv4, app_cfg) {
|
module.exports = function (db, uuidv4, app_cfg) {
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: welche Abfragen noch notwendig?
|
||||||
|
|
||||||
// Module laden
|
// Module laden
|
||||||
const turf = require('@turf/turf');
|
const turf = require('@turf/turf');
|
||||||
|
|
||||||
@ -514,7 +517,11 @@ module.exports = function (db, uuidv4, app_cfg) {
|
|||||||
VALUES (
|
VALUES (
|
||||||
\'` + typ + `\',
|
\'` + typ + `\',
|
||||||
\'` + text + `\')`);
|
\'` + 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) {
|
function db_get_log(callback) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user