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

@@ -72,7 +72,7 @@ exports.getAbout = 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(rawData, baseUrl);
res.json(processedData);