adonisjs-scheduler
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -6,5 +6,16 @@ "use strict"; | ||
rcfile.setPreload('./start/scheduler', ["console"]); | ||
rcfile.setAlias("Commands", "commands"); | ||
rcfile.commit(); | ||
sink.logger.action('update').succeeded('.adonisrc'); | ||
const tsfile = new sink.files.JsonFile(projectRoot, "tsconfig.json"); | ||
const paths = tsfile.get("compilerOptions.paths"); | ||
if (!paths["Commands/*"]) { | ||
paths["Commands/*"] = [ | ||
"./commands/*" | ||
]; | ||
} | ||
tsfile.set("compilerOptions.paths", paths); | ||
tsfile.commit(); | ||
console.log(tsfile.get("compilerOptions.paths")); | ||
} | ||
exports.default = instructions; |
{ | ||
"name": "adonisjs-scheduler", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Task scheduler for AdonisJS", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/KABBOUCHI/adonisjs-scheduler#readme", |
@@ -49,3 +49,6 @@ <div align="center"> | ||
import PurgeUsers from "Commands/PurgeUsers"; | ||
Scheduler.command("inspire").everyFiveSeconds(); | ||
Scheduler.command(PurgeUsers, [ "30 days"]).everyFiveSeconds(); | ||
@@ -52,0 +55,0 @@ Scheduler.call(() => { |
20739
434
84