- change status to product history status

This commit is contained in:
Fadli
2022-08-29 12:11:49 +07:00
parent b13a38590c
commit 25a48ff39f
2 changed files with 14 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ export class TransactionService {
'prepaid',
);
if (!productData.status.includes('ACTIVE')) {
if (!productData.statusHistory.status.includes('ACTIVE')) {
throw new HttpException(
{
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
@@ -467,7 +467,7 @@ export class TransactionService {
'prepaid',
);
if (!productData.status.includes('ACTIVE')) {
if (!productData.statusHistory.status.includes('ACTIVE')) {
throw new HttpException(
{
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,