mirror of https://github.com/halo-dev/halo
fix: markdownImportTest error.
parent
47ea992e7c
commit
f1944c5629
|
@ -26,7 +26,7 @@ public interface PostMetaService extends BaseMetaService<PostMeta> {
|
||||||
* @param postMetas post metas must not be null
|
* @param postMetas post metas must not be null
|
||||||
* @return a list of post meta
|
* @return a list of post meta
|
||||||
*/
|
*/
|
||||||
List<PostMeta> createOrUpdateByPostId(@NonNull Integer postId, @NonNull Set<PostMeta> postMetas);
|
List<PostMeta> createOrUpdateByPostId(@NonNull Integer postId, Set<PostMeta> postMetas);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lists post metas by post id.
|
* Lists post metas by post id.
|
||||||
|
|
|
@ -47,7 +47,6 @@ public class PostMetaServiceImpl extends BaseMetaServiceImpl<PostMeta> implement
|
||||||
@Override
|
@Override
|
||||||
public List<PostMeta> createOrUpdateByPostId(Integer postId, Set<PostMeta> postMetas) {
|
public List<PostMeta> createOrUpdateByPostId(Integer postId, Set<PostMeta> postMetas) {
|
||||||
Assert.notNull(postId, "Post id must not be null");
|
Assert.notNull(postId, "Post id must not be null");
|
||||||
Assert.notNull(postMetas, "Post metas must not be null");
|
|
||||||
if (CollectionUtils.isEmpty(postMetas)) {
|
if (CollectionUtils.isEmpty(postMetas)) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue