We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91cf2fb commit f52f985Copy full SHA for f52f985
api/lib/domain/usecases/create-organization.js
@@ -1,3 +1,4 @@
1
+import { ORGANIZATION_FEATURE } from '../../../src/shared/domain/constants.js';
2
import { Organization } from '../../../src/shared/domain/models/index.js';
3
4
const createOrganization = async function ({
@@ -9,6 +10,10 @@ const createOrganization = async function ({
9
10
codeGenerator,
11
}) {
12
organizationCreationValidator.validate(organization);
13
+ organization.features[ORGANIZATION_FEATURE.MULTIPLE_SENDING_ASSESSMENT.key] = {
14
+ active: true,
15
+ params: null,
16
+ };
17
const savedOrganization = await organizationForAdminRepository.save(organization);
18
19
await dataProtectionOfficerRepository.create({
0 commit comments