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