fix admin setting issue

This commit is contained in:
Quan HL
2023-05-12 07:17:19 +07:00
parent b06032b5f0
commit cfd1eab7cd

View File

@@ -8,7 +8,7 @@ router.post('/', async(req, res) => {
router.get('/', async(req, res) => {
const [sysInfo] = await SystemInformation.retrieveAll();
res.status(200).json(sysInfo);
res.status(200).json(sysInfo || {});
});
module.exports = router;