Skip to content

Commit 3ffadd9

Browse files
committed
remove fastify-cron
1 parent d5a8af0 commit 3ffadd9

File tree

3 files changed

+0
-71
lines changed

3 files changed

+0
-71
lines changed

src/api/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import { ZodOpenApiVersion } from "zod-openapi";
4848
import { withTags } from "./components/index.js";
4949
import apiKeyRoute from "./routes/apiKey.js";
5050
import RedisModule from "ioredis";
51-
import fastifyCron from "fastify-cron";
5251

5352
dotenv.config();
5453

@@ -244,18 +243,6 @@ async function init(prettyPrint: boolean = false) {
244243
genericConfig.ConfigSecretName,
245244
)) as SecretConfig;
246245
};
247-
app.register(fastifyCron.default, {
248-
// refresh secrets config
249-
jobs: [
250-
{
251-
cronTime: "*/15 * * * *",
252-
onTick: async (server) => {
253-
server.log.info("Refreshing secrets manager config.");
254-
await server.refreshSecretConfig();
255-
},
256-
},
257-
],
258-
});
259246
app.addHook("onRequest", (req, _, done) => {
260247
req.startTime = now();
261248
const hostname = req.hostname;

src/api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"dotenv": "^16.5.0",
4242
"esbuild": "^0.25.3",
4343
"fastify": "^5.3.2",
44-
"fastify-cron": "^1.4.0",
4544
"fastify-plugin": "^5.0.1",
4645
"fastify-raw-body": "^5.0.0",
4746
"fastify-zod-openapi": "^4.1.1",

yarn.lock

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2954,13 +2954,6 @@
29542954
resolved "https://registry.npmjs.org/@types/cookiejar/-/cookiejar-2.1.5.tgz"
29552955
integrity sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==
29562956

2957-
"@types/cron@^2.0.0":
2958-
version "2.4.3"
2959-
resolved "https://registry.yarnpkg.com/@types/cron/-/cron-2.4.3.tgz#c4073ffb46778f1d4a7130e66243cfa99f07fdec"
2960-
integrity sha512-ViRBkoZD9Rk0hGeMdd2GHGaOaZuH9mDmwsE5/Zo53Ftwcvh7h9VJc8lIt2wdgEwS4EW5lbtTX6vlE0idCLPOyA==
2961-
dependencies:
2962-
cron "*"
2963-
29642957
"@types/doctrine@^0.0.9":
29652958
version "0.0.9"
29662959
resolved "https://registry.yarnpkg.com/@types/doctrine/-/doctrine-0.0.9.tgz#d86a5f452a15e3e3113b99e39616a9baa0f9863f"
@@ -3027,16 +3020,6 @@
30273020
"@types/ms" "*"
30283021
"@types/node" "*"
30293022

3030-
"@types/luxon@~3.3.0":
3031-
version "3.3.8"
3032-
resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-3.3.8.tgz#84dbf2d020a9209a272058725e168f21d331a67e"
3033-
integrity sha512-jYvz8UMLDgy3a5SkGJne8H7VA7zPV2Lwohjx0V8V31+SqAjNmurWMkk9cQhfvlcnXWudBpK9xPM1n4rljOcHYQ==
3034-
3035-
"@types/luxon@~3.6.0":
3036-
version "3.6.2"
3037-
resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-3.6.2.tgz#be6536931801f437eafcb9c0f6d6781f72308041"
3038-
integrity sha512-R/BdP7OxEMc44l2Ex5lSXHoIXTB2JLNa3y2QISIbr58U/YcsffyQrYW//hZSdrfxrjRZj3GcUoxMPGdO8gSYuw==
3039-
30403023
"@types/mdx@^2.0.0":
30413024
version "2.0.13"
30423025
resolved "https://registry.yarnpkg.com/@types/mdx/-/mdx-2.0.13.tgz#68f6877043d377092890ff5b298152b0a21671bd"
@@ -4511,22 +4494,6 @@ cosmiconfig@^9.0.0:
45114494
js-yaml "^4.1.0"
45124495
parse-json "^5.2.0"
45134496

4514-
cron@*:
4515-
version "4.3.0"
4516-
resolved "https://registry.yarnpkg.com/cron/-/cron-4.3.0.tgz#c5a62872f74f72294cf1cadef34c72ad8d8f50b5"
4517-
integrity sha512-ciiYNLfSlF9MrDqnbMdRWFiA6oizSF7kA1osPP9lRzNu0Uu+AWog1UKy7SkckiDY2irrNjeO6qLyKnXC8oxmrw==
4518-
dependencies:
4519-
"@types/luxon" "~3.6.0"
4520-
luxon "~3.6.0"
4521-
4522-
cron@^2.0.0:
4523-
version "2.4.4"
4524-
resolved "https://registry.yarnpkg.com/cron/-/cron-2.4.4.tgz#988c1757b3f288d1dfcc360ee6d80087448916dc"
4525-
integrity sha512-MHlPImXJj3K7x7lyUHjtKEOl69CSlTOWxS89jiFgNkzXfvhVjhMz/nc7/EIfN9vgooZp8XTtXJ1FREdmbyXOiQ==
4526-
dependencies:
4527-
"@types/luxon" "~3.3.0"
4528-
luxon "~3.3.0"
4529-
45304497
cross-env@^7.0.3:
45314498
version "7.0.3"
45324499
resolved "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz"
@@ -5680,20 +5647,6 @@ fastest-levenshtein@^1.0.16:
56805647
resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5"
56815648
integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==
56825649

5683-
fastify-cron@^1.4.0:
5684-
version "1.4.0"
5685-
resolved "https://registry.yarnpkg.com/fastify-cron/-/fastify-cron-1.4.0.tgz#66b030f529449323c68d44fc2b03bc1dc4bc0bc4"
5686-
integrity sha512-CqJxVuo4yfUITeo5/zRcFasPrm1+iouedVH1Y23zxQehNYCKyy3mZoAQ/xbSTlq26rPAl5gj0guF8XoPDMAvdA==
5687-
dependencies:
5688-
"@types/cron" "^2.0.0"
5689-
cron "^2.0.0"
5690-
fastify-plugin "^3.0.0"
5691-
5692-
fastify-plugin@^3.0.0:
5693-
version "3.0.1"
5694-
resolved "https://registry.yarnpkg.com/fastify-plugin/-/fastify-plugin-3.0.1.tgz#79e84c29f401020f38b524f59f2402103fd21ed2"
5695-
integrity sha512-qKcDXmuZadJqdTm6vlCqioEbyewF60b/0LOFCcYN1B6BIZGlYJumWWOYs70SFYLDAH4YqdE1cxH/RKMG7rFxgA==
5696-
56975650
fastify-plugin@^5.0.0, fastify-plugin@^5.0.1:
56985651
version "5.0.1"
56995652
resolved "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-5.0.1.tgz"
@@ -7305,16 +7258,6 @@ lru_map@^0.3.3:
73057258
resolved "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz"
73067259
integrity sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==
73077260

7308-
luxon@~3.3.0:
7309-
version "3.3.0"
7310-
resolved "https://registry.yarnpkg.com/luxon/-/luxon-3.3.0.tgz#d73ab5b5d2b49a461c47cedbc7e73309b4805b48"
7311-
integrity sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg==
7312-
7313-
luxon@~3.6.0:
7314-
version "3.6.1"
7315-
resolved "https://registry.yarnpkg.com/luxon/-/luxon-3.6.1.tgz#d283ffc4c0076cb0db7885ec6da1c49ba97e47b0"
7316-
integrity sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==
7317-
73187261
lz-string@^1.5.0:
73197262
version "1.5.0"
73207263
resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941"

0 commit comments

Comments
 (0)