|
@@ -29,8 +29,8 @@ async function processTask(){
|
|
let video_product_info = rows[index]
|
|
let video_product_info = rows[index]
|
|
let book_info = await video_product_controllers.getProductData({book_id:video_product_info.product_parent_id})
|
|
let book_info = await video_product_controllers.getProductData({book_id:video_product_info.product_parent_id})
|
|
if(book_info.success){
|
|
if(book_info.success){
|
|
- if(book_info.publish_time!=null){
|
|
|
|
- let publish_time = helper.getDate7DaysBefore(book_info.publish_time,null,'YYYY-MM-DD')
|
|
|
|
|
|
+ if(book_info.data.publish_time!=null){
|
|
|
|
+ let publish_time = helper.getDate7DaysBefore(book_info.data.publish_time,null,'YYYY-MM-DD')
|
|
await connection.execute(
|
|
await connection.execute(
|
|
`UPDATE video_product SET publish_time = ${publish_time} WHERE id = ${video_product_info.id} `
|
|
`UPDATE video_product SET publish_time = ${publish_time} WHERE id = ${video_product_info.id} `
|
|
);
|
|
);
|