SHARE
TWEET

Untitled

a guest Jun 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top