Skip to content

Commit 3fbc9d7

Browse files
committed
revert service change
1 parent 5f4a9ae commit 3fbc9d7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

redisinsight/api/src/modules/cloud/auth/cloud-auth.service.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class CloudAuthService {
7373
}
7474

7575
if (
76-
query?.error_description?.indexOf('property') > -1 &&
76+
query?.error_description?.indexOf('propert') > -1 &&
7777
query?.error_description?.indexOf('required') > -1 &&
7878
query?.error_description?.indexOf('miss') > -1
7979
) {
@@ -330,11 +330,10 @@ export class CloudAuthService {
330330
try {
331331
if (!callback) {
332332
this.logger.log('Callback is undefined');
333-
} else {
334-
callback(result)?.catch((e: Error) =>
335-
this.logger.error('Async callback failed', e),
336-
);
337333
}
334+
callback(result)?.catch((e: Error) =>
335+
this.logger.error('Async callback failed', e),
336+
);
338337
} catch (e) {
339338
this.logger.error('Callback failed', e);
340339
}

0 commit comments

Comments
 (0)