bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
20 lines • 537 B
JavaScript
module.exports = function container (get, set) {
return get('db.createCollection')('webhooks', {
load: function (obj, opts, cb) {
// respond after the obj is loaded
cb(null, obj);
},
save: function (obj, opts, cb) {
// respond before the obj is saved
cb(null, obj);
},
afterSave: function (obj, opts, cb) {
// respond after the obj is saved
cb(null, obj);
},
destroy: function (obj, opts, cb) {
// respond after the obj is destroyed
cb(null, obj)
}
})
}