@ -208,7 +208,7 @@ function createRelation(req: Request) {
consttargetNoteId=req.params.targetNoteId;
constname=req.params.name;
constattributeId=sql.getValue<string|null>(`SELECT attributeId FROM attributes WHERE isDeleted = 0 AND noteId = ? AND type = 'relation' AND name = ? AND value = ?`,[sourceNoteId,name,targetNoteId]);
constattributeId=sql.getValue<string>(`SELECT attributeId FROM attributes WHERE isDeleted = 0 AND noteId = ? AND type = 'relation' AND name = ? AND value = ?`,[sourceNoteId,name,targetNoteId]);