Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const CLOCK_IN = (req ,res ) => {
- const TimeCard = new TimeCardModel({
- startTime: new Date.now(),
- clockedIn: true
- })
- TimeCard.save()
- .then(res => {
- res.json(TimeCard.toJSON())
- })
- .catch(err => {
- res.json(err)
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement