Skip to content

Commit

Permalink
Add resp ncid
Browse files Browse the repository at this point in the history
  • Loading branch information
xinnige committed Sep 29, 2024
1 parent 55fb115 commit cb01548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/routes/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ router.post('/set',
inTransaction = false;
currentTransID = null;
log.info("Commit config change transaction: " + JSON.stringify(newConfig));
res.status(200).json({errors: []});
res.status(200).json({errors: [], "ncid": newConfig.ncid || ""});
return;
case T_OP_REVERT:
// previous persisted config will be applied in the code below
Expand Down Expand Up @@ -354,7 +354,7 @@ router.post('/set',
log.info("New ncid generated", newConfig.ncid);
await ncm.saveConfig(newConfig, inTransaction);

res.status(200).json({errors: errors});
res.status(200).json({errors: errors, "ncid": newConfig.ncid});
}
}
} catch (err) {
Expand Down

0 comments on commit cb01548

Please sign in to comment.