We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ace588 commit b91abcbCopy full SHA for b91abcb
src/modules/users/users.service.ts
@@ -151,10 +151,15 @@ export class UsersService {
151
let isNeedToBeAddedToNode =
152
user.status !== USERS_STATUS.ACTIVE && status === USERS_STATUS.ACTIVE;
153
154
- if (user.status === USERS_STATUS.LIMITED && trafficLimitBytes) {
155
- if (BigInt(trafficLimitBytes) > user.trafficLimitBytes) {
156
- newStatus = USERS_STATUS.ACTIVE;
157
- isNeedToBeAddedToNode = true;
+ if (trafficLimitBytes !== undefined) {
+ if (user.status === USERS_STATUS.LIMITED && trafficLimitBytes >= 0) {
+ if (
+ BigInt(trafficLimitBytes) > user.trafficLimitBytes ||
158
+ trafficLimitBytes === 0
159
+ ) {
160
+ newStatus = USERS_STATUS.ACTIVE;
161
+ isNeedToBeAddedToNode = true;
162
+ }
163
}
164
165
0 commit comments