- fix when all the product is not active

This commit is contained in:
Fadli 2022-08-21 00:37:19 +07:00
parent 356868c262
commit e849c1cfdb

View File

@ -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,