* Removed arrows from notification
* Added trash can function * Tweaked status text to always be the same * Removed some open second note code * Edior always focuses on text now * Added some extra loading note messages * Notes are now removed from search index when deleted * Lots more things happen and update in real time on multiple machines * Shared notes can be reverted * WAY more tests * Note Categories are much more reliable * Lots of code is much cleaner
This commit is contained in:
1 parent
e87e8513bc
commit
5096e74a60
18 files changed
+644
-368
No files matched your search
@@ -58,7 +58,7 @@ QuickNote.makeUrlLink = (inputText) => {
|
||||
return replacedText;
|
||||
}
|
||||
|
||||
QuickNote.update = (io, userId, pushText, masterKey) => {
|
||||
QuickNote.update = (userId, pushText, masterKey) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
let finalId = null
|
||||
@@ -91,7 +91,7 @@ QuickNote.update = (io, userId, pushText, masterKey) => {
|
||||
|
||||
finalText += broken
|
||||
|
||||
return Note.create(io, userId, 'Quick Note', finalText, masterKey)
|
||||
return Note.create(userId, 'Quick Note', finalText, masterKey)
|
||||
.then(insertedId => {
|
||||
finalId = insertedId
|
||||
return db.promise().query('UPDATE note SET quick_note = 1 WHERE id = ? AND user_id = ?',[insertedId, userId])
|
||||
@@ -101,7 +101,7 @@ QuickNote.update = (io, userId, pushText, masterKey) => {
|
||||
|
||||
finalText += (broken + noteObject.text)
|
||||
finalId = noteObject.id
|
||||
return Note.update(io, userId, noteObject.id, finalText, noteObject.title, noteObject.color, noteObject.pinned, noteObject.archived, null, masterKey)
|
||||
return Note.update(userId, noteObject.id, finalText, noteObject.title, noteObject.color, noteObject.pinned, noteObject.archived, null, masterKey)
|
||||
}
|
||||
})
|
||||
.then( saveResults => {
|
||||
|
||||
Reference in new issue
Block a user