change || to ??

This commit is contained in:
2026-04-11 19:15:01 +07:00
parent ac40097bdd
commit fab72e86a6
12 changed files with 23 additions and 28 deletions

View File

@@ -678,7 +678,7 @@ exports.apiHero = async (req, res) => {
);
const baseUrl =
process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`;
process.env.BACKEND_URL ?? `${req.protocol}://${req.get("host")}`;
const processedData = addBaseUrlToImages(heroData, baseUrl);
return res.json({