mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
update
This commit is contained in:
@@ -1394,19 +1394,8 @@ const replacementConfirm = async (req, res) => {
|
||||
const card_new_status = dataCardNew.c_status;
|
||||
// Status valid => Active (A)
|
||||
|
||||
if(card_new_status != 'N') {
|
||||
if(card_new_status == 'P') {
|
||||
result = {
|
||||
code: '452',
|
||||
message: 'New card is already persoed.',
|
||||
data: {
|
||||
status: false,
|
||||
perso_status: true,
|
||||
detail: detail_card
|
||||
},
|
||||
};
|
||||
return res.status(200).json(result);
|
||||
} else if(card_new_status == 'A') {
|
||||
if(card_new_status != 'P') {
|
||||
if(card_new_status == 'A') {
|
||||
result = {
|
||||
code: '453',
|
||||
message: 'New card is already activated.',
|
||||
|
||||
Reference in New Issue
Block a user