Skip to content

Commit ec261e1

Browse files
committed
fix: correct hwid device limit logic in subscription service
- Swapped conditions for hwidDeviceLimit and hwidHeaders
1 parent 0d37a8a commit ec261e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modules/subscription/subscription.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,20 +528,20 @@ export class SubscriptionService {
528528
}>
529529
> {
530530
try {
531-
if (hwidHeaders === null) {
531+
if (user.hwidDeviceLimit === 0) {
532532
return {
533533
isOk: true,
534534
response: {
535-
isSubscriptionAllowed: false,
535+
isSubscriptionAllowed: true,
536536
},
537537
};
538538
}
539539

540-
if (user.hwidDeviceLimit === 0) {
540+
if (hwidHeaders === null) {
541541
return {
542542
isOk: true,
543543
response: {
544-
isSubscriptionAllowed: true,
544+
isSubscriptionAllowed: false,
545545
},
546546
};
547547
}

0 commit comments

Comments
 (0)