From e6e7a05ee39f40380ae53368d3df884a94cadf51 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 25 Oct 2024 16:02:41 -0500 Subject: [PATCH] Make ioredis quit gracefully. --- ving/docs/change-log.md | 1 + ving/index.mjs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ving/docs/change-log.md b/ving/docs/change-log.md index 7cb45280..3558ae3e 100644 --- a/ving/docs/change-log.md +++ b/ving/docs/change-log.md @@ -11,6 +11,7 @@ outline: deep * Fix a hydration mismatch in markdown inputs. * Added error handling to verifyExtension() in S3File. * Added validation for acceptedFileExtensions in ving schemas being in the wrong place. + * Make ioredis quit gracefully. ### 2024-10-24 * Installed dotenv for environment variables. diff --git a/ving/index.mjs b/ving/index.mjs index d3909c69..8cbab525 100644 --- a/ving/index.mjs +++ b/ving/index.mjs @@ -40,7 +40,6 @@ export default { //useKind, close: async () => { await useDB().session.client.pool.end(); - await useCache().disconnect(); - await useRedis().disconnect(); + await useRedis().quit(); } } \ No newline at end of file