@vasrefil/api-toolkit 1.7.7 → 1.7.8

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.
@@ -8,7 +8,6 @@ const bullmq_1 = require("bullmq");
8
8
  const common_1 = require("./common");
9
9
  const common_2 = require("./common");
10
10
  const env_1 = __importDefault(require("../env"));
11
- const connection = common_1.BullmqClient.getConnection();
12
11
  const attempts = env_1.default.NODE_ENV === env_1.default.NODE_ENVS.PROD ? 10 : 1;
13
12
  const removeOnComplete = {
14
13
  age: (3600 * 24) * 3, // 3 days
@@ -18,6 +17,7 @@ const backoff = {
18
17
  delay: 10000,
19
18
  };
20
19
  const EmailQueue = () => {
20
+ const connection = common_1.BullmqClient.getConnection();
21
21
  const defaultJobOptions = {
22
22
  attempts,
23
23
  backoff,
@@ -27,6 +27,7 @@ const EmailQueue = () => {
27
27
  };
28
28
  exports.EmailQueue = EmailQueue;
29
29
  const InAppNotificationQueue = () => {
30
+ const connection = common_1.BullmqClient.getConnection();
30
31
  const defaultJobOptions = {
31
32
  attempts: 1,
32
33
  backoff,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vasrefil/api-toolkit",
3
3
  "description": "This is Vasrefil API toolkit",
4
- "version": "1.7.7",
4
+ "version": "1.7.8",
5
5
  "author": "Sodiq Alabi",
6
6
  "main": "dist/public-api.js",
7
7
  "types": "dist/public-api.d.ts",