ready for test deployment
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-08-22 10:43:35 +02:00
parent b70b80bbea
commit 8d98cf8b66
9 changed files with 62 additions and 13 deletions

View File

@ -29,7 +29,7 @@ module.exports = async (req, res) => {
}
const { message, data, timestamp } = log;
await db.log.insert (app_id, message, data, timestamp);
await db.log.insert (app_id, message, JSON.stringify (data), timestamp);
res.status (http.status_created)
.end ();

View File

@ -23,6 +23,8 @@ async function init (use_fake_seed) {
await db.migrate.latest ();
if (use_fake_seed)
await db.seed.run ({ specific: 'fake.js' });
else
await db.seed.run ({ specific: 'prod.js' });
}
function get_db () {