linting, cleanup
This commit is contained in:
@ -10,10 +10,16 @@
|
||||
async function seed (knex) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log ('creating prod seeds');
|
||||
await knex ('app')
|
||||
.insert (
|
||||
{ name: 'test app' }
|
||||
);
|
||||
|
||||
const apps = await knex ('app')
|
||||
.select ();
|
||||
|
||||
if (apps.length < 1) {
|
||||
await knex ('app')
|
||||
.insert (
|
||||
{ name: 'test app' }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { seed };
|
||||
|
Reference in New Issue
Block a user