We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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())), } }
The text was updated successfully, but these errors were encountered:
You can fork this project, add your code, and then submit a PR (Pull Request).
Sorry, something went wrong.
can we add this? not sure where i have to add this, can somebody make a pr or tell me the file it belongs to so i could make the pr (will credit OP)
@colining hey! I made a PR w/ your code for you since you didn't make one - I've sourced this #172
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: