From a464b13e30c8bdf44d126e7007131d2bcf8a277d Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 5 Apr 2019 21:48:48 -0400 Subject: [PATCH] fix field name --- src/idz/decoder/lockProfile.ts | 2 +- src/idz/decoder/unlockProfile.ts | 2 +- src/idz/request/lockProfile.ts | 2 +- src/idz/request/unlockProfile.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/idz/decoder/lockProfile.ts b/src/idz/decoder/lockProfile.ts index ff11fde..8629aae 100644 --- a/src/idz/decoder/lockProfile.ts +++ b/src/idz/decoder/lockProfile.ts @@ -7,7 +7,7 @@ lockProfile.msgLen = 0x0020; export function lockProfile(buf: Buffer): LockAccountRequest { return { type: "lock_profile_req", - aimeId: buf.readUInt32LE(0x0004), + profileId: buf.readUInt32LE(0x0004), pcbId: buf.slice(0x0008, buf.indexOf("\0", 0x0008)).toString("ascii"), field_0018: buf.readUInt16LE(0x0018), }; diff --git a/src/idz/decoder/unlockProfile.ts b/src/idz/decoder/unlockProfile.ts index 5597159..1809bd5 100644 --- a/src/idz/decoder/unlockProfile.ts +++ b/src/idz/decoder/unlockProfile.ts @@ -7,7 +7,7 @@ unlockProfile.msgLen = 0x0020; export function unlockProfile(buf: Buffer): UnlockProfileRequest { return { type: "unlock_profile_req", - aimeId: buf.readUInt32LE(0x0004), + profileId: buf.readUInt32LE(0x0004), pcbId: buf.slice(0x0008, buf.indexOf("\0", 0x0008)).toString("ascii"), }; } diff --git a/src/idz/request/lockProfile.ts b/src/idz/request/lockProfile.ts index bfd7104..b1210c3 100644 --- a/src/idz/request/lockProfile.ts +++ b/src/idz/request/lockProfile.ts @@ -1,6 +1,6 @@ export interface LockAccountRequest { type: "lock_profile_req"; - aimeId: number; + profileId: number; pcbId: string; field_0018: number; } diff --git a/src/idz/request/unlockProfile.ts b/src/idz/request/unlockProfile.ts index ad1bd25..f2b4caf 100644 --- a/src/idz/request/unlockProfile.ts +++ b/src/idz/request/unlockProfile.ts @@ -1,5 +1,5 @@ export interface UnlockProfileRequest { type: "unlock_profile_req"; - aimeId: number; + profileId: number; pcbId: string; }