From 718ce1ec74449fe764c9843d7f62633dd2401d77 Mon Sep 17 00:00:00 2001 From: kavehjamshidi Date: Mon, 7 Apr 2025 11:41:23 +0330 Subject: [PATCH] add some test func to controller/index.js --- controller/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/index.js b/controller/index.js index 9d4d389..01c871a 100644 --- a/controller/index.js +++ b/controller/index.js @@ -12,6 +12,10 @@ export default function (fastify, opts, done) { await operation.sanaExit(fastify.req, fastify.reply) }); + cron.schedule(`*/5 * * * * *`, async () => { + await operation.test(fastify.req, fastify.reply) + }); + fastify.get('/enter', operation.sanaEnter()); fastify.get('/exit', operation.sanaExit());