From 72f392386644c16bc60206bb8f805f68d0e06c84 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sun, 8 Nov 2020 12:06:29 -0600 Subject: [PATCH] write simple setup helper function --- setup.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 setup.js diff --git a/setup.js b/setup.js new file mode 100644 index 0000000..20bf853 --- /dev/null +++ b/setup.js @@ -0,0 +1,10 @@ +const SeedAPIData = require('./app/SeedAPIData.patch') +const SeedWeeklyPlayerData = require('./app/SeedWeeklyPlayerData.patch') + +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() +}