@felloh-org/lambda-wrapper 1.1.29 → 1.1.30
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.
package/.concourse/pipeline.yml
CHANGED
|
@@ -127,3 +127,43 @@ jobs:
|
|
|
127
127
|
params:
|
|
128
128
|
alert_type: 'failed'
|
|
129
129
|
message: Migrations deployment failed
|
|
130
|
+
|
|
131
|
+
- name: 'migrations.sandbox'
|
|
132
|
+
serial: true
|
|
133
|
+
plan:
|
|
134
|
+
- in_parallel:
|
|
135
|
+
- get: lambda-wrapper
|
|
136
|
+
passed: ['migrations.staging']
|
|
137
|
+
trigger: true
|
|
138
|
+
- get: concourse-scripts
|
|
139
|
+
- task: 'schema.create'
|
|
140
|
+
file: concourse-scripts/scripts/pulumi_npm_run/npm_run.yml
|
|
141
|
+
input_mapping:
|
|
142
|
+
repository: lambda-wrapper
|
|
143
|
+
params:
|
|
144
|
+
NPM_COMMAND: 'orm:schema:create'
|
|
145
|
+
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
146
|
+
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
147
|
+
AWS_REGION: ((aws.region.primary))
|
|
148
|
+
WAREHOUSE_ARN: ((aws.rds.warehouse_arn.sandbox))
|
|
149
|
+
WAREHOUSE_SECRET_ARN: ((aws.secret_manager.warehouse_secret_arn.sandbox))
|
|
150
|
+
WAREHOUSE_DATABASE: 'felloh'
|
|
151
|
+
WAREHOUSE_SCHEMA: 'user'
|
|
152
|
+
- task: 'migrations.run'
|
|
153
|
+
file: concourse-scripts/scripts/pulumi_npm_run/npm_run.yml
|
|
154
|
+
input_mapping:
|
|
155
|
+
repository: lambda-wrapper
|
|
156
|
+
params:
|
|
157
|
+
NPM_COMMAND: 'orm:migration:run'
|
|
158
|
+
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
159
|
+
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
160
|
+
AWS_REGION: ((aws.region.primary))
|
|
161
|
+
WAREHOUSE_ARN: ((aws.rds.warehouse_arn.sandbox))
|
|
162
|
+
WAREHOUSE_SECRET_ARN: ((aws.secret_manager.warehouse_secret_arn.sandbox))
|
|
163
|
+
WAREHOUSE_DATABASE: 'felloh'
|
|
164
|
+
WAREHOUSE_SCHEMA: 'user'
|
|
165
|
+
on_failure:
|
|
166
|
+
put: slack-alert-deploy
|
|
167
|
+
params:
|
|
168
|
+
alert_type: 'failed'
|
|
169
|
+
message: Migrations deployment failed
|
package/.concourse/private.yml
CHANGED
|
Binary file
|
|
@@ -146,7 +146,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
if (this.booking !== null) {
|
|
149
|
+
if (this.booking !== null && typeof this.booking.id !== 'undefined') {
|
|
150
150
|
response.booking = this.booking.getPublicData();
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -154,7 +154,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
154
154
|
response.transactions = this.transactions.map(transaction => transaction.getPublicCompactData());
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
if (this.user !== null) {
|
|
157
|
+
if (this.user !== null && typeof this.user.id !== 'undefined') {
|
|
158
158
|
response.user = this.user.getPublicCompactData();
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -143,10 +143,19 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
143
143
|
completed_at: this.completed_at
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
if (this.booking !== null) {
|
|
146
|
+
if (this.booking !== null && typeof this.booking.id !== 'undefined') {
|
|
147
|
+
console.log(this.booking);
|
|
147
148
|
response.booking = this.booking.getPublicData();
|
|
148
149
|
}
|
|
149
150
|
|
|
151
|
+
if (this.payment_link !== null && typeof this.payment_link !== 'undefined') {
|
|
152
|
+
response.payment_link = this.payment_link.getPublicData();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (this.metadata !== null) {
|
|
156
|
+
response.metadata = this.metadata;
|
|
157
|
+
}
|
|
158
|
+
|
|
150
159
|
if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
|
|
151
160
|
response.organisation = this.organisation.getPublicCompactData();
|
|
152
161
|
}
|