15 lines
418 B
JavaScript
15 lines
418 B
JavaScript
const SeedAPIData = require('./app/SeedAPIData.patch')
|
|
const SeedWeeklyPlayerData = require('./app/SeedWeeklyPlayerData.patch')
|
|
|
|
/**
|
|
* Helper function for seeding the initial database data.
|
|
* @type {exports}
|
|
*/
|
|
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()
|
|
}
|