@friggframework/core 2.0.0--canary.387.74881f0.0 → 2.0.0--canary.389.8b8d085.0

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.
@@ -39,7 +39,7 @@ const loadRouterFromObject = (IntegrationClass, routerObject) => {
39
39
 
40
40
  return router;
41
41
  };
42
- const createQueueWorker = (integrationClass) => {
42
+ const createQueueWorker = (integrationClass, integrationFactory) => {
43
43
  class QueueWorker extends Worker {
44
44
  async _run(params, context) {
45
45
  try {
@@ -54,11 +54,11 @@ const createQueueWorker = (integrationClass) => {
54
54
  );
55
55
  } else {
56
56
  instance =
57
- await integrationClass.getInstanceFromIntegrationId({
57
+ await integrationFactory.getInstanceFromIntegrationId({
58
58
  integrationId: params.integrationId,
59
59
  });
60
60
  console.log(
61
- `${params.event} for ${instance.integration.config.type} of integrationId: ${params.integrationId}`
61
+ `${params.event} for ${instance.record.config.type} of integrationId: ${params.integrationId}`
62
62
  );
63
63
  }
64
64
  const res = await instance.send(params.event, {
@@ -3,7 +3,7 @@ const { integrationFactory, createQueueWorker } = require('../backend-utils');
3
3
 
4
4
  const handlers = {};
5
5
  integrationFactory.integrationClasses.forEach((IntegrationClass) => {
6
- const defaultQueueWorker = createQueueWorker(IntegrationClass);
6
+ const defaultQueueWorker = createQueueWorker(IntegrationClass, integrationFactory);
7
7
 
8
8
  handlers[`${IntegrationClass.Definition.name}`] = {
9
9
  queueWorker: createHandler({
@@ -108,6 +108,7 @@ class Requester extends Delegate {
108
108
  }
109
109
 
110
110
  async _post(options, stringify = true) {
111
+ console.log('options', options);
111
112
  const fetchOptions = {
112
113
  method: 'POST',
113
114
  credentials: 'include',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.387.74881f0.0",
4
+ "version": "2.0.0--canary.389.8b8d085.0",
5
5
  "dependencies": {
6
6
  "@hapi/boom": "^10.0.1",
7
7
  "aws-sdk": "^2.1200.0",
@@ -22,9 +22,9 @@
22
22
  "uuid": "^9.0.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@friggframework/eslint-config": "2.0.0--canary.387.74881f0.0",
26
- "@friggframework/prettier-config": "2.0.0--canary.387.74881f0.0",
27
- "@friggframework/test": "2.0.0--canary.387.74881f0.0",
25
+ "@friggframework/eslint-config": "2.0.0--canary.389.8b8d085.0",
26
+ "@friggframework/prettier-config": "2.0.0--canary.389.8b8d085.0",
27
+ "@friggframework/test": "2.0.0--canary.389.8b8d085.0",
28
28
  "@types/lodash": "4.17.15",
29
29
  "@typescript-eslint/eslint-plugin": "^8.0.0",
30
30
  "chai": "^4.3.6",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "homepage": "https://github.com/friggframework/frigg#readme",
55
55
  "description": "",
56
- "gitHead": "74881f00914bbf61ebe5940f4e3cba21a93a12c9"
56
+ "gitHead": "8b8d0854723e4c4c5a595bb551cf78bef35f5edc"
57
57
  }