zhangchunrui 1 сар өмнө
parent
commit
d5b03c5d55
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      index.mjs

+ 2 - 2
index.mjs

@@ -169,8 +169,8 @@ async function processPositions() {
   
   const { records, symbol } = await fetchTopPositions()
   
-  if (records.length === 0) {
-    console.log('获取数据')
+  if (!records) {
+    console.log('获取数据失败')
     return
   }