forked from UKSOURCE/cms.hailearning.edu.vn
change || to ??
This commit is contained in:
@@ -179,7 +179,7 @@ exports.api = exports.getTravelData = async (req, res) => {
|
||||
|
||||
const travelObj = travel.toObject();
|
||||
const baseUrl =
|
||||
process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`;
|
||||
process.env.BACKEND_URL ?? `${req.protocol}://${req.get("host")}`;
|
||||
const processed = addBaseUrlToImages(travelObj, baseUrl);
|
||||
|
||||
return res.json({
|
||||
|
||||
Reference in New Issue
Block a user