Update availability model
This commit is contained in:
parent
d59a562fe2
commit
aaa33b46cb
@ -11,7 +11,6 @@ function addAvailability(data) {
|
||||
.returning([
|
||||
'id',
|
||||
'participant_id',
|
||||
'meeting_id',
|
||||
'possible_date_id',
|
||||
'preference',
|
||||
'start_time',
|
||||
|
@ -8,7 +8,7 @@ const {
|
||||
} = require('../../middlewares/validateParticipantID');
|
||||
const Participant = require('../models/participantModel');
|
||||
|
||||
router.post('/:id', authenticate, async (req, res) => {
|
||||
router.post('/', authenticate, async (req, res) => {
|
||||
id = uuidv4();
|
||||
const data = { id, ...req.body };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user