mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
fix(routes/api/clipper): fix typo in error message
This commit is contained in:
parent
08a6053c38
commit
dd9e1e69d7
@ -137,7 +137,7 @@ function createNote(req: Request) {
|
|||||||
|
|
||||||
const existingContent = note.getContent();
|
const existingContent = note.getContent();
|
||||||
if (typeof existingContent !== "string") {
|
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 rewrittenContent = processContent(images, note, content);
|
||||||
const newContent = `${existingContent}${existingContent.trim() ? "<br/>" : ""}${rewrittenContent}`;
|
const newContent = `${existingContent}${existingContent.trim() ? "<br/>" : ""}${rewrittenContent}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user