@waveorb/issue
v1.0.1
Published
Waveorb issue
Downloads
124
Readme
Waveorb issue
Waveorb issue writes issues to the database.
Based on MongoDB. Saves issues in the 'issue' collection in the database.
Install
npm install @waveorb/issue
Usage
// Requires mongowave
var mongodb = require('mongowave')
var db = await mongodb('firmalisten')
var issues = require('@waveorb/issue')({ db })
// The name of the issue
var name = 'issue-name'
// The message
var message = 'This failed'
// Data
var data = { some: 'data' }
// Register issue
await issues.register({ name, message, data })
// Remove all issues
var result = await issues.clear()
Created by Eldøy Projects
Enjoy!