Fix addAvailibility model

This commit is contained in:
rui hildt 2020-05-06 15:33:38 +02:00
parent 6a3c5420b0
commit 5ccec5878d
2 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,7 @@ function addAvailibility(data) {
'id', 'id',
'account_id', 'account_id',
'meeting_id', 'meeting_id',
'possible_date', 'possible_date_id',
'preference', 'preference',
'start_time', 'start_time',
'end_time', 'end_time',

View File

@ -7,7 +7,6 @@ let Meeting = require('../models/meetingModel');
router.post('/', async (req, res) => { router.post('/', async (req, res) => {
id = uuidv4(); id = uuidv4();
data = {id, ...req.body} data = {id, ...req.body}
console.log(data);
try { try {
const [meeting] = await Meeting.addMeeting(data); const [meeting] = await Meeting.addMeeting(data);