node-go/packages/play-node-go/server/data/queries/timeSetting.js
2020-02-05 16:44:34 -08:00

19 lines
No EOL
488 B
JavaScript

const knex = require('../db')
const findTimeSetting = async (timeSetting) => {
const timeQuery = {
main_time: timeSetting.mainTime,
time_period: timeSetting.timePeriod,
period_length: timeSetting.periodLength,
overtime: timeSetting.overtime,
overtime_period: timeSetting.overtimePeriod,
overtime_length: timeSetting.overtimeLength
}
return await knex('time_setting')
.where({...timeSetting})
.select('id');
}
module.exports = {
findTimeSetting
}