You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
436 B
JavaScript
19 lines
436 B
JavaScript
'use strict';
|
|
|
|
const db = require('../config').database;
|
|
const initModels = require('../models/init-models');
|
|
|
|
const Sequelize = db.sequelize;
|
|
const models = initModels(Sequelize);
|
|
|
|
const LogsModel = models.request_logs;
|
|
|
|
// LogsModel.sync({ force: false });
|
|
|
|
const createRequestLog = async data => {
|
|
const r = await LogsModel.create(data, { logging: false });
|
|
return r;
|
|
};
|
|
|
|
module.exports = { createRequestLog };
|