Fix addAvailibility model
This commit is contained in:
parent
6a3c5420b0
commit
5ccec5878d
@ -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',
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user