Parcourir la source

Use old bulk delete method without params

pull/53/head
Kristijan Mitrovic il y a 4 ans
Parent
révision
5ed2e5851f
2 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. +1
    -3
      bubble-server/src/main/java/bubble/service/stream/AppDataCleaner.java
  2. +1
    -1
      utils/cobbzilla-wizard

+ 1
- 3
bubble-server/src/main/java/bubble/service/stream/AppDataCleaner.java Voir le fichier

@@ -11,8 +11,6 @@ import org.cobbzilla.util.daemon.SimpleDaemon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

import static java.util.concurrent.TimeUnit.HOURS;
import static org.cobbzilla.util.daemon.ZillaRuntime.now;
import static org.cobbzilla.util.daemon.ZillaRuntime.shortError;
@@ -27,7 +25,7 @@ public class AppDataCleaner extends SimpleDaemon {

@Override protected void process() {
try {
final int ct = dataDAO.bulkDeleteWhere("expiration < " + now(), new HashMap<>());
final int ct = dataDAO.bulkDeleteWhere("expiration < " + now());
log.info("process: removed " + ct + " expired AppData records");
} catch (Exception e) {
reportError("AppDataCleaner.process: "+shortError(e), e);


+ 1
- 1
utils/cobbzilla-wizard

@@ -1 +1 @@
Subproject commit 0ce731a3f64aa75c0da578021e7985ca03c24e87
Subproject commit 6ad35ab2c21b8887f945b65cb224f99d870ab3ed

Chargement…
Annuler
Enregistrer