Added markdown property save for unencrypted notes

This commit is contained in:
Magnus Åhall 2024-01-09 17:30:52 +01:00
parent 51502bd694
commit 60c6d4eaba

View File

@ -330,6 +330,7 @@ func UpdateNode(userID, nodeID int, content string, cryptoKeyID int, markdown bo
SET
content = $1,
content_encrypted = '',
markdown = $5,
crypto_key_id = CASE $2::int
WHEN 0 THEN NULL
ELSE $2
@ -342,6 +343,7 @@ func UpdateNode(userID, nodeID int, content string, cryptoKeyID int, markdown bo
cryptoKeyID,
nodeID,
userID,
markdown,
)
}