Ver a proveniência

Set bulkDelete's parameters to be non null

pull/53/head
Kristijan Mitrovic há 4 anos
ascendente
cometimento
92c12d87f7
2 ficheiros alterados com 4 adições e 2 eliminações
  1. +3
    -1
      bubble-server/src/main/java/bubble/service/stream/AppDataCleaner.java
  2. +1
    -1
      utils/cobbzilla-wizard

+ 3
- 1
bubble-server/src/main/java/bubble/service/stream/AppDataCleaner.java Ver ficheiro

@@ -11,6 +11,8 @@ 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;
@@ -25,7 +27,7 @@ public class AppDataCleaner extends SimpleDaemon {

@Override protected void process() {
try {
final int ct = dataDAO.bulkDeleteWhere("expiration < " + now(), null);
final int ct = dataDAO.bulkDeleteWhere("expiration < " + now(), new HashMap<>());
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 c591f6970bb385312f94fc7fbc5848025ac77eec
Subproject commit 04683a86d81eefb61e337b073e851de47a61e769

Carregando…
Cancelar
Guardar