Commit ba1ac7ea authored by duanjinfei's avatar duanjinfei

fix crawl data

parent 6df8ae57
...@@ -145,7 +145,9 @@ async function getTonAppInfo(supabase) { ...@@ -145,7 +145,9 @@ async function getTonAppInfo(supabase) {
if (!cleanedApp) continue; if (!cleanedApp) continue;
// 检查应用是否已存在 // 检查应用是否已存在
const isExist = await databaseCache.checkAppExists(supabase, cleanedApp.app_id, cleanedApp.name,); const isExist = await databaseCache.checkAppExists(cleanedApp.app_id, cleanedApp.name);
console.log(`app_id: ${cleanedApp.app_id}, app_name: ${cleanedApp.name}`, isExist);
if (!isExist) { if (!isExist) {
// 准备插入的应用数据 // 准备插入的应用数据
...@@ -153,7 +155,6 @@ async function getTonAppInfo(supabase) { ...@@ -153,7 +155,6 @@ async function getTonAppInfo(supabase) {
...cleanedApp, ...cleanedApp,
category_id: categoryInfo.id category_id: categoryInfo.id
}; };
console.log("insert app name", insertApp.name); console.log("insert app name", insertApp.name);
appsToInsert.push(insertApp); appsToInsert.push(insertApp);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment