Skip to content

Commit

Permalink
0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Mar 21, 2024
1 parent a866970 commit d245328
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
napi = { version = "2", features = ["async"] }
napi-derive = "2"
flashpoint-archive = { version = "0.7.1", features = ["napi"] }
flashpoint-archive = { version = "0.7.3", features = ["napi"] }

[build-dependencies]
napi-build = "2"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fparchive/flashpoint-archive",
"version": "0.7.1",
"version": "0.7.3",
"main": "index.js",
"types": "index.d.ts",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,13 @@ impl FlashpointNode {
})
}

#[napi]
pub async fn clear_playtime_tracking_by_id(&self, game_id: String) -> Result<()> {
self.flashpoint.clear_playtime_tracking_by_id(&game_id).await.map_err(|e| {
Error::new(Status::GenericFailure, e)
})
}

#[napi]
pub async fn clear_playtime_tracking(&self) -> Result<()> {
self.flashpoint.clear_playtime_tracking().await.map_err(|e| {
Expand Down

0 comments on commit d245328

Please sign in to comment.