runErrors.js 376 B

1234567891011121314151617181920
  1. /**
  2. * @class RunErrors 运行错误日志
  3. */
  4. const BaseMod = require('./base')
  5. module.exports = class RunErrors extends BaseMod {
  6. constructor() {
  7. super()
  8. this.tableName = 'run-errors'
  9. }
  10. /**
  11. * 创建日志
  12. * @param {Object} params 参数
  13. */
  14. async create(params) {
  15. if (!params) return
  16. const res = await this.insert(this.tableName, params)
  17. return res
  18. }
  19. }