904118851 преди 2 месеца
родител
ревизия
313d7fef59
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      task_script/sync_author_hy.js

+ 1 - 1
task_script/sync_author_hy.js

@@ -15,7 +15,7 @@ async function processTask(){
             ...taskdbConfig,
             multipleStatements: true
         });
-        let sql = `SELECT * FROM video_product WHERE book_platform = ${config.platform_heiyan} or book_platform = ${config.platform_heiyanmf} AND  author IS NULL  LIMIT 5`
+        let sql = `SELECT * FROM video_product WHERE ( book_platform = ${config.platform_heiyan} or book_platform = ${config.platform_heiyanmf} ) AND  author IS NULL  LIMIT 5`
         console.log("sql:",sql)
         const [rows] = await connection.execute(
             sql