Skip to content

Commit 36398b6

Browse files
committed
correction error syntax
1 parent f9819a0 commit 36398b6

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
88
"start": "nest start",
99
"start:dev": "nest start --watch",
10-
"start:debug": "nest start --debug 0.0.0.0 --watch",
10+
"start:debug": "nest start --debug 9229 --watch",
1111
"start:prod": "node dist/main",
1212
"lint": "eslint \"{src,apps,libs,tests}/**/*.ts\"",
1313
"lint:fix": "eslint \"{src,apps,libs,tests}/**/*.ts\" --fix",

apps/api/src/management/identities/identities-crud.controller.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,14 @@ export class IdentitiesCrudController extends AbstractController {
362362

363363
if (body.lifecycle && body.lifecycle !== identity.lifecycle) {
364364
const manualTransitions = await loadManualTransitions();
365-
if (!isManualLifecycleTransitionAllowed(identity.lifecycle, body.lifecycle, manualTransitions, identity as Record<string, unknown>)) {
365+
if (
366+
!isManualLifecycleTransitionAllowed(
367+
identity.lifecycle,
368+
body.lifecycle,
369+
manualTransitions,
370+
identity as unknown as Record<string, unknown>,
371+
)
372+
) {
366373
throw new BadRequestException(
367374
`Changement manuel de cycle de vie non autorisé : <${identity.lifecycle}> → <${body.lifecycle}>`,
368375
);

0 commit comments

Comments
 (0)