AuspeXeu / openvpn-status

A web-based application to monitor OpenVPN server client connections
MIT License
161 stars 48 forks source link

Sqlite file data.sqlite #461

Closed rajesh8614 closed 4 years ago

rajesh8614 commented 4 years ago

Hi

  1. There is no data in Clents table sqlite database. May be in database.js file entry is not correct const Client = sequelize.define('Clent', {
  2. In sqlite database it creates table by name Clents It adds "s" character at the end
const Client = sequelize.define('Clent', {
  id: mkId(),
  server: {type: Sequelize.INTEGER},
  name: {type: Sequelize.STRING},
  sent: {type: Sequelize.INTEGER, defaultValue: 0},
  received: {type: Sequelize.INTEGER, defaultValue: 0}
})

module.exports = {
  init: () => Promise.all([Log.sync(), Client.sync()]),
  Log,
  Client,
  op: Sequelize.Op
}
AuspeXeu commented 4 years ago

The database has not been touched in ages so I doubt there is a bug there, it's more likely that the data does not reach the database.