Skip to content

Commit

Permalink
Make Application#id return the "PresenceGroupId" instead of "SaveDa…
Browse files Browse the repository at this point in the history
…taOwnerId"
  • Loading branch information
TooTallNate committed Mar 18, 2024
1 parent 963c584 commit 70ebcd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-shirts-rule.md
@@ -0,0 +1,5 @@
---
"nxjs-runtime": patch
---

Make `Application#id` return the "PresenceGroupId" instead of "SaveDataOwnerId"
2 changes: 1 addition & 1 deletion packages/runtime/src/switch/ns.ts
Expand Up @@ -29,7 +29,7 @@ function _init() {
*/
export class Application {
/**
* The 64-bit unique identifier of the application.
* The 64-bit unique identifier of the application (`PresenceGroupId`).
*/
declare readonly id: bigint;

Expand Down
2 changes: 1 addition & 1 deletion source/ns.c
Expand Up @@ -102,7 +102,7 @@ static JSValue nx_ns_app_id(JSContext *ctx, JSValueConst this_val, int argc, JSV
{
return JS_EXCEPTION;
}
return JS_NewBigUint64(ctx, app->data.nacp.save_data_owner_id);
return JS_NewBigUint64(ctx, app->data.nacp.presence_group_id);
}

static JSValue nx_ns_app_nacp(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Expand Down

0 comments on commit 70ebcd5

Please sign in to comment.