Fix spaces in tableau
This commit is contained in:
parent
f07a62bfb4
commit
fb6fd93077
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue