Skip to content

Commit 46b4055

Browse files
authored
Merge pull request #80 from step-security/fix/subscription
fix: fixed subscription check code
2 parents 795929b + e10a3dc commit 46b4055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function validateSubscription() {
7575
try {
7676
await axios.get(API_URL, { timeout: 3000 });
7777
} catch (error) {
78-
if (error.isAxiosError && error.response) {
78+
if (error.response && error.response.status === 403) {
7979
console.error(
8080
"Subscription is not valid. Reach out to support@stepsecurity.io"
8181
);

0 commit comments

Comments
 (0)