@go-mailer/jarvis 10.1.1 → 10.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ const { RedisClient } = require("../../redis");
3
3
  const { HTTPCache } = require("./schema");
4
4
 
5
5
  const HTTPCacheManager = () => {
6
- const clearCache = async (request) => {
6
+ const clearCache = async (request, response, next) => {
7
7
  const { tenant_id, cache_resource } = request;
8
8
  const repo = await RedisClient.register_schema(HTTPCache);
9
9
  const cached_records = await repo
@@ -16,6 +16,7 @@ const HTTPCacheManager = () => {
16
16
  for (const cached_record of cached_records) {
17
17
  await repo.remove(cached_record[EntityId]);
18
18
  }
19
+ next()
19
20
  };
20
21
 
21
22
  const handleRequest = async (request, response, next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",