File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
apps/api/src/management/passwd Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -479,18 +479,19 @@ export class PasswdService extends AbstractService {
479479 return code ;
480480 }
481481
482- private async setInitState ( identity : Identities , state : InitStatesEnum ) : Promise < any > {
482+ private async setInitState ( identity : Identities , state : InitStatesEnum ) : Promise < Identities > {
483+ // on met actif l'identité
483484 identity . initState = state ;
484- // on met actif l'identité
485485 identity . dataStatus = DataStatusEnum . ACTIVE ;
486+
486487 if ( state === InitStatesEnum . SENT ) {
487488 identity . initInfo . initDate = new Date ( ) ;
488489 identity . initInfo . sentDate = null ;
489490 } else if ( state === InitStatesEnum . INITIALIZED ) {
490491 identity . initInfo . sentDate = new Date ( ) ;
491492 }
492- const ok = await identity . save ( ) ;
493- return ok ;
493+
494+ return await identity . save ( ) ;
494495 }
495496
496497 // sort les identites qui n ont pas repondu dans le delai à l init de leurs comptes
You can’t perform that action at this time.
0 commit comments