Added counts to each category
Counts update on certain events and show or hide various elements Fixed various little ui element issues fixes #6
This commit is contained in:
1 parent
c903bcbcd1
commit
771b739c37
14 files changed
+169
-39
No files matched your search
@@ -334,6 +334,10 @@ Note.get = (userId, noteId) => {
|
||||
WHERE note.user_id = ? AND note.id = ? LIMIT 1`, [userId,noteId])
|
||||
.then((rows, fields) => {
|
||||
|
||||
const created = Math.round((+new Date)/1000)
|
||||
|
||||
db.promise().query(`UPDATE note SET opened = ? WHERE (id = ?)`, [created, noteId])
|
||||
|
||||
//Return note data
|
||||
resolve(rows[0][0])
|
||||
|
||||
|
||||
Reference in new issue
Block a user