- fix when all the product is not active
This commit is contained in:
parent
356868c262
commit
e849c1cfdb
|
@ -310,7 +310,7 @@ export class TransactionService {
|
|||
'prepaid',
|
||||
);
|
||||
|
||||
if (productData.status == 'NOT ACTIVE') {
|
||||
if (!productData.status.includes('ACTIVE')) {
|
||||
throw new HttpException(
|
||||
{
|
||||
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
|
@ -467,7 +467,7 @@ export class TransactionService {
|
|||
'prepaid',
|
||||
);
|
||||
|
||||
if (productData.status == 'NOT ACTIVE') {
|
||||
if (!productData.status.includes('ACTIVE')) {
|
||||
throw new HttpException(
|
||||
{
|
||||
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
|
|
Loading…
Reference in New Issue
Block a user