소스 검색

Set bulkDelete's parameters to be non null

pull/53/head
Kristijan Mitrovic 4 년 전
부모
커밋
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

불러오는 중...
취소
저장