浏览代码

Set bulkDelete's parameters to be non null

pull/53/head
父节点
当前提交
92c12d87f7
共有 2 个文件被更改,包括 4 次插入2 次删除
  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 查看文件

@@ -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

正在加载...
取消
保存