fix
This commit is contained in:
@@ -38,7 +38,12 @@ function send(app: PublicAPIApp) {
|
|||||||
teamId: team.id,
|
teamId: team.id,
|
||||||
apiKeyId: team.apiKeyId,
|
apiKeyId: team.apiKeyId,
|
||||||
text: c.req.valid("json").text ?? undefined,
|
text: c.req.valid("json").text ?? undefined,
|
||||||
html: c.req.valid("json").html ?? undefined,
|
html:
|
||||||
|
!c.req.valid("json")?.html ||
|
||||||
|
c.req.valid("json")?.html === "false" ||
|
||||||
|
c.req.valid("json")?.html === "true"
|
||||||
|
? undefined
|
||||||
|
: c.req.valid("json").html?.toString(),
|
||||||
});
|
});
|
||||||
|
|
||||||
return c.json({ emailId: email?.id });
|
return c.json({ emailId: email?.id });
|
||||||
|
Reference in New Issue
Block a user