fix(routes/api/clipper): fix typo in error message

This commit is contained in:
Panagiotis Papadopoulos 2025-03-08 15:27:39 +01:00
parent 08a6053c38
commit dd9e1e69d7

View File

@ -137,7 +137,7 @@ function createNote(req: Request) {
const existingContent = note.getContent();
if (typeof existingContent !== "string") {
throw new ValidationError("Invalid note content tpye.");
throw new ValidationError("Invalid note content type.");
}
const rewrittenContent = processContent(images, note, content);
const newContent = `${existingContent}${existingContent.trim() ? "<br/>" : ""}${rewrittenContent}`;