Skip to content

Commit 276880d

Browse files
committed
feat(bot): normalize optional license_token fields; PR template sync note
1 parent 3d5087d commit 276880d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Closes #____
1313

1414
## Vendored API helper
1515

16-
- [ ] If editing `src/client/licensechainApiNormalize.js`: apply the same change to `LicenseChain-TG-Bot` and update `api/src/contracts/bot-license-contracts.ts` + tests if shapes change.
16+
- [ ] If editing `src/client/licensechainApiNormalize.js`: mirror the same bytes in `LicenseChain-TG-Bot`, `Bots/shared/licensechain-api-normalize/index.js`, and `api/src/contracts/bot-license-contracts.ts` + tests if shapes change.
1717

1818
## Verification
1919

src/client/licensechainApiNormalize.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Vendored copy — keep in sync with:
3-
* - Bots/LicenseChain-Discord-Bot/src/client/licensechainApiNormalize.js
2+
* Vendored copy — keep byte-identical with:
3+
* - Bots/shared/licensechain-api-normalize/index.js
44
* - Bots/LicenseChain-TG-Bot/src/client/licensechainApiNormalize.js
55
* - api/src/contracts/bot-license-contracts.ts
66
*/
@@ -56,6 +56,12 @@ function normalizeVerifyPayload(data) {
5656
verificationType: typeof o.verificationType === 'string' ? o.verificationType : o.verificationType,
5757
error: typeof o.error === 'string' ? o.error : o.error,
5858
hardwareId: typeof o.hardwareId === 'string' ? o.hardwareId : o.hardwareId,
59+
license_token: typeof o.license_token === 'string' ? o.license_token : o.license_token,
60+
license_token_expires_at:
61+
typeof o.license_token_expires_at === 'string'
62+
? o.license_token_expires_at
63+
: o.license_token_expires_at,
64+
license_jwks_uri: typeof o.license_jwks_uri === 'string' ? o.license_jwks_uri : o.license_jwks_uri,
5965
};
6066
}
6167

0 commit comments

Comments
 (0)