@stamhoofd/backend 2.31.0 → 2.32.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stamhoofd/backend",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "main": "./dist/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -36,14 +36,14 @@
36
36
  "@simonbackx/simple-encoding": "2.15.1",
37
37
  "@simonbackx/simple-endpoints": "1.14.0",
38
38
  "@simonbackx/simple-logging": "^1.0.1",
39
- "@stamhoofd/backend-i18n": "2.31.0",
40
- "@stamhoofd/backend-middleware": "2.31.0",
41
- "@stamhoofd/email": "2.31.0",
42
- "@stamhoofd/models": "2.31.0",
43
- "@stamhoofd/queues": "2.31.0",
44
- "@stamhoofd/sql": "2.31.0",
45
- "@stamhoofd/structures": "2.31.0",
46
- "@stamhoofd/utility": "2.31.0",
39
+ "@stamhoofd/backend-i18n": "2.32.0",
40
+ "@stamhoofd/backend-middleware": "2.32.0",
41
+ "@stamhoofd/email": "2.32.0",
42
+ "@stamhoofd/models": "2.32.0",
43
+ "@stamhoofd/queues": "2.32.0",
44
+ "@stamhoofd/sql": "2.32.0",
45
+ "@stamhoofd/structures": "2.32.0",
46
+ "@stamhoofd/utility": "2.32.0",
47
47
  "archiver": "^7.0.1",
48
48
  "aws-sdk": "^2.885.0",
49
49
  "axios": "1.6.8",
@@ -60,5 +60,5 @@
60
60
  "postmark": "4.0.2",
61
61
  "stripe": "^16.6.0"
62
62
  },
63
- "gitHead": "37d7636dab952ff0b6145794f370f4005ca2980d"
63
+ "gitHead": "481a98d545048ee0d418858778b7d0b402a1515e"
64
64
  }
@@ -178,14 +178,16 @@ export class PatchUserMembersEndpoint extends Endpoint<Params, Query, Body, Resp
178
178
  }
179
179
 
180
180
  // Entered the security code, so we can link the user to the member
181
- if (!duplicate.details.securityCode || securityCode !== duplicate.details.securityCode) {
182
- throw new SimpleError({
183
- code: "invalid_field",
184
- field: 'details.securityCode',
185
- message: "Invalid security code",
186
- human: Context.i18n.$t(`Deze beveiligingscode is ongeldig. Probeer het opnieuw of neem contact op met jouw vereniging om de juiste code te ontvangen.`),
187
- statusCode: 400
188
- })
181
+ if (STAMHOOFD.environment !== 'development') {
182
+ if (!duplicate.details.securityCode || securityCode !== duplicate.details.securityCode) {
183
+ throw new SimpleError({
184
+ code: "invalid_field",
185
+ field: 'details.securityCode',
186
+ message: "Invalid security code",
187
+ human: Context.i18n.$t(`Deze beveiligingscode is ongeldig. Probeer het opnieuw of neem contact op met jouw vereniging om de juiste code te ontvangen.`),
188
+ statusCode: 400
189
+ })
190
+ }
189
191
  }
190
192
 
191
193
  console.log("Merging duplicate: security code is correct - for " + duplicate.id)