runErrors.js 396 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/**
 * @class RunErrors 运行错误日志
 */
const BaseMod = require('./base')
module.exports = class RunErrors extends BaseMod {
	constructor() {
		super()
		this.tableName = 'run-errors'
	}

	/**
	 * 创建日志
	 * @param {Object} params 参数
	 */
	async create(params) {
		if (!params) return
		const res = await this.insert(this.tableName, params)
		return res
	}
}