This commit is contained in:
@ -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 ();
|
||||
|
@ -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 () {
|
||||
|
Reference in New Issue
Block a user