变异星期一Api什么也没做

问题描述

我要在修改一个项目时对它进行突变。感谢星期一的api v2 要链接该商品,我已经在Google Cloud Plateform的Cloud sql中存储了一个映射。

这是我需要帮助的部分代码

else if(type == "update_column_value"){
    console.log("start of the else if")

    pool.query(`SELECT Target_Item_ID FROM Items_ID WHERE Source_Item_ID = ${pEvent.pulseId};`,(e,resultat) => {
      if(e){
        throw e
      }
      
      const tItemId = resultat[0].Target_Item_ID
      console.log("inside the pool.query; target item id is : " + tItemId)

      let mutation2 = `mutation{change_column_value(board_id: ${TBoardID},item_id : ${tItemId},column_id: "status",value: "{"index":1}"){id}}`

      console.log(mutation2)

//doesn't do anything from here....

      fetch("https://api.monday.com/v2",{
        method: 'post',headers:{
          'Content-Type': 'application/json','Authorization': token
        },body: JSON.stringify({
          'query': mutation2,})
      })
      .then(res => res.json())
      .then(res => JSON.stringify(res))
      .catch(err => console.log(err))
//to here.

     console.log("mutation done")  
    })
  }

sql请求中提取变量TBoardID,这很好。 我确定突变的价值部分不好,但现在我只想执行突变。

感谢帮助我!

有记录 How to Find Web Elements in Shadow DOMs using Selenium

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)