eecs448-project-4/setup.js

15 lines
418 B
JavaScript
Raw Normal View History

2020-11-08 18:06:29 +00:00
const SeedAPIData = require('./app/SeedAPIData.patch')
const SeedWeeklyPlayerData = require('./app/SeedWeeklyPlayerData.patch')
2020-11-08 18:34:50 +00:00
/**
* Helper function for seeding the initial database data.
* @type {exports}
*/
2020-11-08 18:06:29 +00:00
module.exports = exports = async function(di) {
const api_patch = di.make(SeedAPIData)
await api_patch.run()
const player_patch = di.make(SeedWeeklyPlayerData)
await player_patch.run()
}