误提交测试代码移除

This commit is contained in:
liweiyi 2024-04-30 17:10:58 +08:00
parent 429146a9e8
commit 58c8cea901
3 changed files with 3 additions and 5 deletions

View File

@ -91,7 +91,7 @@ public class CatalogPublishTask implements IPublishTask<CmsCatalog> {
MapRecord<String, String, String> record = MapRecord.create(CMSPublishConfig.PublishStreamName, Map.of(
"type", Type,
"id", dataId
)).withId(RecordId.of(Instant.now().toEpochMilli(), catalog.getCatalogId()));
));
redisTemplate.opsForStream().add(record);
}

View File

@ -106,7 +106,7 @@ public class ContentPublishTask implements IPublishTask<CmsContent> {
MapRecord<String, String, String> record = MapRecord.create(CMSPublishConfig.PublishStreamName, Map.of(
"type", Type,
"id", dataId
)).withId(RecordId.of(Instant.now().toEpochMilli(), content.getContentId()));
));
redisTemplate.opsForStream().add(record);
}

View File

@ -33,12 +33,10 @@ import com.chestnut.contentcore.util.TemplateUtils;
import lombok.RequiredArgsConstructor;
import org.apache.commons.collections4.MapUtils;
import org.springframework.data.redis.connection.stream.MapRecord;
import org.springframework.data.redis.connection.stream.RecordId;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import java.io.File;
import java.time.Instant;
import java.util.Map;
import java.util.Objects;
@ -75,7 +73,7 @@ public class SitePublishTask implements IPublishTask<CmsSite> {
MapRecord<String, String, String> record = MapRecord.create(CMSPublishConfig.PublishStreamName, Map.of(
"type", Type,
"id", dataId
)).withId(RecordId.of(Instant.now().toEpochMilli(), site.getSiteId()));
));
redisTemplate.opsForStream().add(record);
}