fintalk-pkg 3.0.4 → 3.0.6

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.
@@ -11,6 +11,14 @@ class BaseController {
11
11
  flow.setController(this);
12
12
 
13
13
  this.context = context;
14
+
15
+ if (event && (!event.requestContext || !event.requestContext.requestId) && context && context.awsRequestId) {
16
+ if (!event.requestContext) {
17
+ event.requestContext = {};
18
+ }
19
+ event.requestContext.requestId = context.awsRequestId;
20
+ }
21
+
14
22
  this.event = event;
15
23
  this.http = http;
16
24
  this.start = new Date();
@@ -48,4 +56,4 @@ class BaseController {
48
56
 
49
57
  var coldStartHelper = true;
50
58
 
51
- module.exports = BaseController;
59
+ module.exports = BaseController;
package/model/Customer.js CHANGED
@@ -32,6 +32,7 @@ var CustomerSchema = new Schema({
32
32
  email: String,
33
33
  cpf: String,
34
34
  phoneNumber: String,
35
+ originPhoneNumberId: String,
35
36
  birthDate: Date,
36
37
  address: {
37
38
  type: Object,
@@ -167,4 +168,4 @@ var CustomerSchema = new Schema({
167
168
 
168
169
  module.exports = dynamoose.model(`fintalk-orchestrator-${process.env.BOT}-customer`, CustomerSchema, {
169
170
  create: false, waitForActive: false
170
- });
171
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fintalk-pkg",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Common code between projects",
5
5
  "main": "index.js",
6
6
  "scripts": {