@stamhoofd/backend 2.40.1 → 2.41.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.
|
|
3
|
+
"version": "2.41.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.
|
|
40
|
-
"@stamhoofd/backend-middleware": "2.
|
|
41
|
-
"@stamhoofd/email": "2.
|
|
42
|
-
"@stamhoofd/models": "2.
|
|
43
|
-
"@stamhoofd/queues": "2.
|
|
44
|
-
"@stamhoofd/sql": "2.
|
|
45
|
-
"@stamhoofd/structures": "2.
|
|
46
|
-
"@stamhoofd/utility": "2.
|
|
39
|
+
"@stamhoofd/backend-i18n": "2.41.0",
|
|
40
|
+
"@stamhoofd/backend-middleware": "2.41.0",
|
|
41
|
+
"@stamhoofd/email": "2.41.0",
|
|
42
|
+
"@stamhoofd/models": "2.41.0",
|
|
43
|
+
"@stamhoofd/queues": "2.41.0",
|
|
44
|
+
"@stamhoofd/sql": "2.41.0",
|
|
45
|
+
"@stamhoofd/structures": "2.41.0",
|
|
46
|
+
"@stamhoofd/utility": "2.41.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.5",
|
|
61
61
|
"stripe": "^16.6.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "03f83c0617324280ab302a12fc0669f021b6dceb"
|
|
64
64
|
}
|
|
@@ -113,6 +113,10 @@ export class PatchPlatformEndpoint extends Endpoint<
|
|
|
113
113
|
if (d.defaultMembershipTypeId !== undefined) {
|
|
114
114
|
shouldUpdateMemberships = true;
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
if (d.minimumRequiredMembers !== undefined) {
|
|
118
|
+
shouldUpdateSetupSteps = true;
|
|
119
|
+
}
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
}
|
|
@@ -267,6 +267,11 @@ export class PatchOrganizationRegistrationPeriodsEndpoint extends Endpoint<Param
|
|
|
267
267
|
throw Context.auth.error('Je hebt geen toegangsrechten om deze groep te wijzigen');
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
const previousProperties = {
|
|
271
|
+
deletedAt: model.deletedAt,
|
|
272
|
+
defaultAgeGroupId: model.defaultAgeGroupId,
|
|
273
|
+
};
|
|
274
|
+
|
|
270
275
|
if (struct.settings) {
|
|
271
276
|
struct.settings.period = undefined; // Not allowed to patch manually
|
|
272
277
|
model.settings.patchOrPut(struct.settings);
|
|
@@ -376,7 +381,9 @@ export class PatchOrganizationRegistrationPeriodsEndpoint extends Endpoint<Param
|
|
|
376
381
|
}
|
|
377
382
|
}
|
|
378
383
|
|
|
379
|
-
await model.updateOccupancy(
|
|
384
|
+
await model.updateOccupancy({
|
|
385
|
+
previousProperties,
|
|
386
|
+
});
|
|
380
387
|
await model.save();
|
|
381
388
|
|
|
382
389
|
if (struct.deletedAt !== undefined || struct.defaultAgeGroupId !== undefined) {
|