| 123456789101112131415 |
- const chalk = require('chalk')
- const { prod, dev } = require('./seeds')
- const init = async (db) => {
- console.log(chalk.cyan('Initializing prod records'))
- await prod(db)
- if (process.env.NODE_ENV === 'development') {
- console.log(chalk.cyan.bold('Initializing DEV records'))
- await dev(db)
- }
- }
- module.exports = {
- init
- }
|