backend/api/models/possibleDateModel.js

17 lines
318 B
JavaScript
Raw Normal View History

2020-05-05 09:34:30 +00:00
const db = require('../../data/db');
module.exports = {
addPossibleDate,
deletePossibleDate,
};
function addPossibleDate(data) {
return db('possible_date')
.insert(data)
.returning(['id', 'meeting_id', 'possible_date']);
}
function deletePossibleDate(id) {
return db('possible_date').where({ id }).del();
}