Fix spaces in tableau

This commit is contained in:
Arthur Belleville 2025-07-05 21:10:25 +02:00
parent f07a62bfb4
commit fb6fd93077
No known key found for this signature in database

View file

@ -135,7 +135,11 @@ tabloRouter.post("/invite", async (c) => {
from: `${sender.email} via XTablo <noreply@xtablo.com>`,
to: recipientmail,
subject: "Vous avez été invité à un tablo",
html: `<p>Vous avez été invité à un tablo avec <a href="${config.XTABLO_URL}/join/${tablo.name}?token=${token}">ce lien</a></p>`,
html: `<p>Vous avez été invité à un tablo avec <a href="${
config.XTABLO_URL
}/join/${encodeURIComponent(tablo.name)}?token=${encodeURIComponent(
token
)}">ce lien</a></p>`,
});
return c.json({
@ -158,6 +162,7 @@ tabloRouter.post("/join", async (c) => {
.single();
if (error) {
console.error("error", error);
return c.json({ error: error.message }, 500);
}
@ -180,6 +185,7 @@ tabloRouter.post("/join", async (c) => {
});
if (tabloAccessError) {
console.error("tabloAccessError", tabloAccessError);
return c.json({ error: tabloAccessError.message }, 500);
}