Skip to content

Commit f52f985

Browse files
tech(api): added multiple sending assessment by default when creating a campaign
1 parent 91cf2fb commit f52f985

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/lib/domain/usecases/create-organization.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ORGANIZATION_FEATURE } from '../../../src/shared/domain/constants.js';
12
import { Organization } from '../../../src/shared/domain/models/index.js';
23

34
const createOrganization = async function ({
@@ -9,6 +10,10 @@ const createOrganization = async function ({
910
codeGenerator,
1011
}) {
1112
organizationCreationValidator.validate(organization);
13+
organization.features[ORGANIZATION_FEATURE.MULTIPLE_SENDING_ASSESSMENT.key] = {
14+
active: true,
15+
params: null,
16+
};
1217
const savedOrganization = await organizationForAdminRepository.save(organization);
1318

1419
await dataProtectionOfficerRepository.create({

0 commit comments

Comments
 (0)