Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. const CLOCK_IN = (req ,res ) => {
  2.  
  3. const TimeCard = new TimeCardModel({
  4. startTime: new Date.now(),
  5. clockedIn: true
  6. })
  7. TimeCard.save()
  8. .then(res => {
  9. res.json(TimeCard.toJSON())
  10. })
  11. .catch(err => {
  12. res.json(err)
  13. })
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement