Adding everything to get started on cycle tracking and maybe avid habit clone
This commit is contained in:
1 parent
77cd95fdcb
commit
b51e5ac0d0
19 files changed
+1727
-333
No files matched your search
@@ -9,7 +9,7 @@ const speakeasy = require('speakeasy')
|
||||
|
||||
let User = module.exports = {}
|
||||
|
||||
const version = '3.4.3'
|
||||
const version = '3.5.0'
|
||||
|
||||
//Login a user, if that user does not exist create them
|
||||
//Issues login token
|
||||
@@ -35,7 +35,7 @@ User.login = (username, password, authToken = null) => {
|
||||
//
|
||||
if(rows[0].length == 1){
|
||||
|
||||
//Pull out user data from database results
|
||||
//Pull out user data from database results
|
||||
const lookedUpUser = rows[0][0]
|
||||
|
||||
//Verify Token if set
|
||||
@@ -255,7 +255,7 @@ User.getCounts = (userId) => {
|
||||
WHERE user_id = ?
|
||||
GROUP BY tag_id
|
||||
ORDER BY uses DESC
|
||||
LIMIT 5
|
||||
LIMIT 16
|
||||
`, [userId])
|
||||
|
||||
}).then( (rows, fields) => {
|
||||
|
||||
Reference in new issue
Block a user