ti2 1.0.33 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/controllers/app.js +2 -1
- package/package.json +1 -1
package/controllers/app.js
CHANGED
|
@@ -58,7 +58,8 @@ const createAppToken = async (req, res, next) => {
|
|
|
58
58
|
// create any cronjobs related to the app
|
|
59
59
|
await bb.each(req.app.plugins, async plugin => {
|
|
60
60
|
if (Array.isArray(plugin.jobs)) {
|
|
61
|
-
|
|
61
|
+
const validJobs = plugin.jobs.filter(job => Boolean(job.cron) && Boolean(job.method));
|
|
62
|
+
await bb.each(validJobs, async job => {
|
|
62
63
|
const where = {
|
|
63
64
|
pluginName: plugin.name,
|
|
64
65
|
pluginJobId: job.method,
|