Parcourir la source

修复 StoreServiceImpl#countChannelObjects 方法中的错误

reghao il y a 1 an
Parent
commit
1d6db69bdf

+ 1 - 1
oss-store/src/main/java/cn/reghao/oss/store/rpc/StoreServiceImpl.java

@@ -99,7 +99,7 @@ public class StoreServiceImpl implements StoreService {
         FileMeta fileMeta = objectRepository.getByObjectName(channelPrefix, owner);
         int total = 0;
         if (fileMeta != null) {
-            total = objectRepository.countByPid(fileMeta.getPid());
+            total = objectRepository.countByPid(fileMeta.getObjectId());
         }
 
         return total;