Skip to content

Commit efef7b1

Browse files
Mise à jour du service IdentitiesService pour prendre en compte l'état SYNCED
1 parent 3b3db4d commit efef7b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/management/identities/identities.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ export class IdentitiesService extends AbstractServiceSchema {
9595
if (update.state === IdentityState.TO_COMPLETE) {
9696
update = { ...update, state: IdentityState.TO_VALIDATE };
9797
}
98-
console.log(update);
98+
if (update.state === IdentityState.SYNCED) {
99+
update = { ...update, state: IdentityState.TO_VALIDATE };
100+
}
99101
//update.state = IdentityState.TO_VALIDATE;
100102
const updated = await super.update(_id, update, options);
101103
//TODO: add backends service logic here (TO_SYNC)

0 commit comments

Comments
 (0)