homebrewery
homebrewery copied to clipboard
[WIP] UserInfo
Initial pass at UserInfo.
- updateActivity : Updates the
lastActivity
property with the current date & time; the update function checks if the user's lastActivity property is a different date to today before applying the update, so each user should only havelastActivity
update once in every 24 hour period. Currently hooked into the Express app middleware as well as API GET method.
When complete, this PR will resolve #1908.