Skip to content

Commit a7662f0

Browse files
fix: updated subscription check code (#155)
* Update main.ts * chore: dist updated * fix: apply audit fixes * fix: apply audit fixes --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 parents 98d5401 + e890061 commit a7662f0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52826,7 +52826,7 @@ async function validateSubscription() {
5282652826
await axios.get(API_URL, { timeout: 3000 });
5282752827
}
5282852828
catch (error) {
52829-
if (isAxiosError(error) && error.response) {
52829+
if (isAxiosError(error) && error.response?.status === 403) {
5283052830
coreExports.error('Subscription is not valid. Reach out to [email protected]');
5283152831
process.exit(1);
5283252832
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function validateSubscription(): Promise<void> {
2121
try {
2222
await axios.get(API_URL, { timeout: 3000 })
2323
} catch (error) {
24-
if (isAxiosError(error) && error.response) {
24+
if (isAxiosError(error) && error.response?.status === 403) {
2525
core.error(
2626
'Subscription is not valid. Reach out to [email protected]'
2727
)

0 commit comments

Comments
 (0)