if you fail in update_item process first time. it's should be delete , and create item again
here is my code, I'm nod good at rust, so please check my code,and add this function
thanks a lot
#[napi]
pub async fn delete_item(item_id: BigInt) -> Result<(), Error> {
let client = crate::client::get_client();
let (tx, rx) = oneshot::channel();
client
.ugc()
.delete_item(PublishedFileId(item_id.get_u64().1), |result| {
tx.send(result).unwrap();
});
let result = rx.await.unwrap();
match result {
Ok(()) => Ok(()),
Err(e) => Err(Error::from_reason(e.to_string())),
}
}
if you fail in update_item process first time. it's should be delete , and create item again
here is my code, I'm nod good at rust, so please check my code,and add this function
thanks a lot