You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
312 B
18 lines
312 B
import Config from '../dao/config.dao.js' |
|
|
|
async function getConfig() { |
|
return Config.find() |
|
} |
|
|
|
async function updateConfig(options) { |
|
const config = new Config({ |
|
id: options.id, |
|
startingDateRaid: options.startingDateRaid |
|
}) |
|
await config.update() |
|
} |
|
|
|
export default { |
|
getConfig, |
|
updateConfig |
|
} |