This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import sass-mixins | |
body | |
width: 100% | |
height: 100% | |
background: url("images/background-sun.png") | |
background-position: 50% 50% | |
background-size: cover | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import sass-mixins | |
body | |
width: 100% | |
height: 100% | |
background: url("images/background-sun.png") | |
background-position: 50% 50% | |
background-size: cover | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import sass-mixins | |
body | |
width: 100% | |
height: 100% | |
background: url("images/background-sun.png") | |
background-position: 50% 50% | |
background-size: cover | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import sass-mixins | |
body | |
width: 100% | |
height: 100% | |
background: url("images/background-sun.png") | |
background-position: 50% 50% | |
background-size: cover | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
var bodyParser = require('body-parser') | |
// knex | |
const environment = process.env.NODE_ENV || 'development'; | |
const configuration = require('./knexfile')[environment]; | |
const database = require('knex')(configuration); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original, before trying something at line 23. | |
router.get('/timesheets', (req, res) => { | |
return Promise.try(() => { | |
return Api_fns.getAllTimesheets(); | |
}).then((timesheets) => { | |
return Promise.map(timesheets, (timesheet) => { | |
return Promise.all([ | |
Api_fns.getEmployee_by_id(timesheet['emp_accepted_by']), /* emp completing the task */ |