linting, cleanup

This commit is contained in:
2020-08-23 13:08:04 +02:00
parent 49f6bcf30e
commit 39f9f17b95
8 changed files with 34 additions and 153 deletions

View File

@ -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 };