koishi-plugin-schedule
Advanced tools
Comparing version 2.0.0-alpha.35 to 2.0.0-alpha.36
@@ -8,4 +8,2 @@ "use strict"; | ||
function inspectSchedule({ id, assignee, meta, interval, command, time }) { | ||
if (!koishi_core_1.appMap[assignee]) | ||
return; | ||
const now = Date.now(); | ||
@@ -45,4 +43,6 @@ const date = time.valueOf(); | ||
schedules.forEach((schedule) => { | ||
schedule.meta = new koishi_core_1.Meta(schedule.meta); | ||
inspectSchedule(schedule); | ||
if (schedule.meta.$app = koishi_core_1.appMap[schedule.assignee]) { | ||
schedule.meta = new koishi_core_1.Meta(schedule.meta); | ||
inspectSchedule(schedule); | ||
} | ||
}); | ||
@@ -49,0 +49,0 @@ }); |
{ | ||
"name": "koishi-plugin-schedule", | ||
"description": "Schedule plugin for Koishi", | ||
"version": "2.0.0-alpha.35", | ||
"version": "2.0.0-alpha.36", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
12126