script related changes

This commit is contained in:
azivner
2018-01-29 20:57:55 -05:00
parent 587f3d833e
commit 9a091408e3
4 changed files with 15 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ const attributes = require('./attributes');
const protected_session = require('./protected_session');
async function getNoteById(noteId, dataKey) {
const note = await sql.getRow("SELECT * FROM notes WHERE noteId = ?", [noteId]);
const note = await sql.getEntity("SELECT * FROM notes WHERE noteId = ?", [noteId]);
protected_session.decryptNote(dataKey, note);