forked from tsai/budibase
8 changed files with 143 additions and 30 deletions
@ -0,0 +1,30 @@ |
|||
const events = require("../events") |
|||
const { Events } = require("../constants") |
|||
|
|||
exports.updgraded = () => { |
|||
const properties = {} |
|||
events.processEvent(Events.LICENSE_UPGRADED, properties) |
|||
} |
|||
|
|||
exports.downgraded = () => { |
|||
const properties = {} |
|||
events.processEvent(Events.LICENSE_DOWNGRADED, properties) |
|||
} |
|||
|
|||
exports.updated = () => { |
|||
const properties = {} |
|||
events.processEvent(Events.LICENSE_UPDATED, properties) |
|||
} |
|||
|
|||
exports.paired = () => { |
|||
const properties = {} |
|||
events.processEvent(Events.LICENSE_PAIRED, properties) |
|||
} |
|||
|
|||
exports.quotaExceeded = (quotaName, value) => { |
|||
const properties = { |
|||
name: quotaName, |
|||
value, |
|||
} |
|||
events.processEvent(Events.LICENSE_QUOTA_EXCEEDED, properties) |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
const events = require("../events") |
|||
const { Events } = require("../constants") |
|||
|
|||
exports.quotaExceeded = (quotaName, value) => { |
|||
const properties = { |
|||
name: quotaName, |
|||
value, |
|||
} |
|||
events.processEvent(Events.LICENSING_QUOTA_EXCEEDED, properties) |
|||
} |
|||
Loading…
Reference in new issue