Updated to later version of vue cli to improve build process
* Updated some simples styles * Added archive button to main notes fixes #21
This commit is contained in:
@@ -217,6 +217,21 @@ Note.setPinned = (userId, noteId, pinnedBoolean) => {
|
||||
})
|
||||
}
|
||||
|
||||
Note.setArchived = (userId, noteId, archivedBoolead) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
const archived = archivedBoolead ? 1:0
|
||||
|
||||
//Update other note attributes
|
||||
return db.promise()
|
||||
.query('UPDATE note SET archived = ? WHERE id = ? AND user_id = ? LIMIT 1',
|
||||
[archived, noteId, userId])
|
||||
.then((rows, fields) => {
|
||||
resolve(true)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
//
|
||||
// Delete a note and all its remaining parts
|
||||
//
|
||||
|
Reference in New Issue
Block a user