Merge pull request 'fix: floating contact button cms' (#48) from fix/dat-12042026-fix-floating-contact-button-cms into develop

Reviewed-on: UKSOURCE/cms.hailearning.edu.vn#48
This commit is contained in:
2026-04-12 16:36:28 +00:00

View File

@@ -287,7 +287,7 @@ exports.index = async (req, res) => {
data.floatingContact = normalizeFloatingContactData(data.floatingContact); data.floatingContact = normalizeFloatingContactData(data.floatingContact);
const frontendUrl = process.env.FRONTEND_URL || "http://localhost:3000"; const frontendUrl = process.env.FRONTEND_URL || "http://localhost:3000";
const backendUrl = `${req.protocol}://${req.get("host")}`; const backendUrl = process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`;
// Lấy tất cả blog để chọn trong CMS // Lấy tất cả blog để chọn trong CMS
const allBlogs = await Blog.find({ status: "published" }) const allBlogs = await Blog.find({ status: "published" })